由于docker默认镜像源是在国外
可替换为国内的镜像源https://www.daocloud.io/mirror#accelerator-doc
也可参考https://mirrors.ustc.edu.cn/help/dockerhub.html
[root@VM_0_13_centos ~]# curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
docker version >= 1.12
{
"registry-mirrors" : ["https://docker.mirrors.ustc.edu.cn"]
}
Success.
You need to restart docker to take effect: sudo systemctl restart docker
[root@VM_0_13_centos ~]# systemctl daemon-reload
[root@VM_0_13_centos ~]# systemctl restart docker
[root@VM_0_13_centos ~]# docker pull centos/mysql-57-centos7
按照以上操作既可以了

本文介绍如何将Docker的默认镜像源从国外更改为国内,以提高下载速度和稳定性。通过使用DaoCloud和中国科学技术大学提供的镜像源,可以显著减少拉取镜像的时间。
6956

被折叠的 条评论
为什么被折叠?



