docker镜像阿里云加速节点配置

作者: admin 分类: Docker 发布时间: 2019-04-21 22:40 浏览:918 次    

1、注册阿里云开发账号,可用支付宝等帐号授权登陆

https://dev.aliyun.com/

2、进入加速器页面获取加速信息

https://cr.console.aliyun.com/#/accelerator

%title插图%num

3、修改配置(centos为例)

[root@qunniao ~]# cat >/etc/docker/daemon.json <<EOF
{
"registry-mirrors": ["https://lgc971x1.mirror.aliyuncs.com"]
}
EOF
[root@qunniao ~]# cat /etc/docker/daemon.json 
{
 "registry-mirrors": ["https://lgc971x1.mirror.aliyuncs.com"]
}
[root@qunniao ~]# systemctl daemon-reload 
[root@qunniao ~]# systemctl restart docker

 


温馨提示:如无特殊说明,本站文章均为作者原创,转载时请注明出处及相应链接!

发表评论