1.现象
 
ASP站长网如果直接docker pull CentOS 两个小时才down下来8M,很慢
 
2.解决
 
[root@localhost network-scripts]# cd /etc/docker
[root@localhost docker]# ls
certs.d  daemon.json  key.json  seccomp.json
[root@localhost docker]# cat daemon.json
{}
[root@localhost docker]# vi daemon.json
 
{
"registry-mirrors": ["https://mj9kvemk.mirror.aliyuncs.com"]
}
 
重启docker
 
[root@localhost docker]# service docker restart
Redirecting to /bin/systemctl restart docker.service
[root@localhost 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
Digest: sha256:8d487d68857f5bc9595793279b33d082b03713341ddec91054382641d14db861
Status: Downloaded newer image for docker.io/centos:latest
[root@localhost docker]#
 
 3.验证
 
[root@localhost docker]# docker images
REPOSITORY          TAG                IMAGE ID            CREATED            SIZE
docker.io/centos    latest              9f38484d220f        10 days ago        202 MB
[root@localhost docker]#

dawei

【声明】:九江站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。