CentOS 6.8
vim /etc/sysconfig/docker进入文件配置下列数据
other_args=”–registry-mirror=https://xxxxxxx.mirror.aliyuncs.com”
检查 : ps -ef|grep docker
配置成功显示如下
CentOS 7.0++(借鉴别人的)
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-‘EOF’
{
“registry-mirrors”: [“https://xxxxxxx.mirror.aliyuncs.com”]
}
EOF
systemctl daemon-reload
systemctl restart docker
申请地址:https://www.aliyun.com/product/acr
原文链接:https://www.cnblogs.com/lovetl/p/11556723.html
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/7166