It has been 595 days since the last update, the content of the article may be outdated.

一点星光,在心上就能反射出太阳
一、snap版docker
修改:
1 2 3
| vim /var/snap/docker/current/config/daemon.json
|
二、apt版docker
1 2 3
| vim /etc/docker/daemon.json
|
docker镜像:
阿里云
1 2 3 4 5 6 7
| {
"registry-mirrors": ["https://dg1w94af.mirror.aliyuncs.com"]
}
|
其他
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| {
"registry-mirrors" : [
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn",
"http://hub-mirror.c.163.com",
"https://cr.console.aliyun.com/"
]
}
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| {
"registry-mirrors":[
"https://hub-mirror.c.163.com/",
"https://docker.mirrors.ustc.edu.cn/"
]
}
|
重启docker以及daemon
1 2 3
| systemctl daemon-reload
|
1 2 3
| systemctl restart docker
|