Docker中国官方镜像地址及配置方法

版权声明:本文为老麻原创文章,未经老麻的博客博主允许不得转载。 https://blog.csdn.net/antma/article/details/80134863

    Docker 中国官方镜像加速可通过 registry.docker-cn.com 访问。此镜像库仅含有流行的公有镜像,如需私有镜像还是需要到美国镜像库中pull

方法:修改docker对应的配置文件daemon.json:

vi  /etc/docker/daemon.json
#修改后如下:
{
    "registry-mirrors": ["https://registry.docker-cn.com"],
    "live-restore": true
}

修改后重启docker:

[root@VM_4_84_centos docker]# systemctl restart docker.service 
[root@VM_4_84_centos docker]#

猜你喜欢

转载自blog.csdn.net/antma/article/details/80134863