docker pull太慢

微笑、不失礼 提交于 2020-10-29 11:26:38

https://yq.aliyun.com/articles/745392


1.现象

如果直接docker pull CentOS 你会发现很慢

2.解决

[root@localhost network-scripts]# vi /etc/docker/daemon.json

{
"registry-mirrors": ["https://mj9kvemk.mirror.aliyuncs.com"]
}

重启docker

[root@localhost docker]# systemctl restart docker

重新拉取,秒秒钟

[root@localhost docker]# docker pull centos
Using default tag: latest
Trying to pull repository docker.io/library/centos ...
latest: Pulling from docker.io/library/centos
8ba884070f61: Pull complete



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!