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