docker 更改镜像源&重启

修改 /etc/docker/daemon.json

{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn","https://hub-mirror.c.163.com", "https://registry.docker-cn.com"],
"max-concurrent-downloads": 10,
"log-driver": "json-file",
"log-level": "warn",
"log-opts": {
"max-size": "10m",
"max-file": "3"
},
"data-root": "/var/lib/docker"
}

重启守护进程

systemctl daemon-reload

重启docker服务

systemctl restart docker

关闭docker服务

systemctl stop docker

你可能感兴趣的:(docker 更改镜像源&重启)