配置Docker配置镜像加速器

# 配置Docker配置镜像加速器

# 配置Docker配置镜像加速器

vi /etc/docker/daemon.json

{
"registry-mirrors": [
	"https://docker.m.daocloud.io", 
    "https://noohub.ru", 
    "https://huecker.io",
    "https://dockerhub.timeweb.cloud",
	"https://f3e2e938202649e9b525ffb7272d7486.mirror.swr.myhuaweicloud.com",  
    "https://otow63ff.mirror.aliyuncs.com",
    "https://docker.1panel.live",
    "http://mirrors.ustc.edu.cn/",
    "http://mirror.azure.cn/",
    "https://hub.rat.dev/",
    "https://docker.ckyl.me/",
    "https://docker.chenby.cn",
    "https://docker.hpcloud.cloud",
    "https://docker.m.daocloud.io",
    "https://d-hub.xgss.net"  
	],
  "data-root": "/data/docker-lib"
}


systemctl daemon-reload
systemctl restart docker
docker info

registry-mirrors: 配置镜像加速器。
data-root: 指定 Docker 数据存储的根目录。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31