docker更换阿里云镜像加速器

作者:admin 发布:2018-07-24 浏览:1946次

##使用阿里云镜像加速器

[root@localhost ~]# mkdir -p /etc/docker
[root@localhost ~]# tee /etc/docker/daemon.json <<-'EOF'
{  
   "registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}
EOF
[root@localhost ~]# systemctl daemon-reload
[root@localhost ~]# systemctl restart docker


Comments (0)