Docker配置阿里云静态加速地址

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

 

posted @ 2019-09-20 13:51  帖子搬运工  阅读(293)  评论(0编辑  收藏  举报