由于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

按照以上操作既可以了

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐