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
来源:oschina
链接:https://my.oschina.net/u/4264209/blog/3204380