1.国内镜像源列表
Docker中国官方
https://registry.docker-cn.com
网易163
http://hub-mirror.c.163.com
中科大
https://docker.mirrors.ustc.edu.cn
阿里云
https://{your_id}.mirror.aliyuncs.com
daocloud
http://{your_id}.m.daocloud.io
2.新建并设置/etc/docker/daemon.json国内镜像
# mkdir -p /etc/docker
# vi /etc/docker/daemon.json
{
"registry-mirrors": [ "https://registry.docker-cn.com", "http://hub-mirror.c.163.com"]
}
3. 重新加载配置文件,重启docker服务
# systemctl daemon-reload
# systemctl restart docker.service