- 修改配置文件
vim /etc/docker/daemon.json
{
"registry-mirrors": [
"https://registry.dockermirror.com", #特别适合中国宝宝的镜像源
"https://tkcnyb3h.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com",
"https://ccr.ccs.tencentyun.com"
]
}
- 重启docker
systemctl restart docker