Docker国内设置镜像加速下载地址

原先当我们配置好阿里云的镜像服务后,通过docker pull拉取镜像很方便,但是随着阿里这方面的相关政策调整后,发现很多拉取镜像都出现了问题,无法正常拉取,自己构建镜像又嫌烦。正好在简书上看到有个老铁发了其他docker加速地址,试了下挺管用,就转载保存下分享给大家,如果使用阿里云镜像服务无法拉起镜像的话,可以试试下面的镜像地址

1、目的

国内的镜像很容易被屏蔽,导致docker pull失败,需要手动设置可以用的镜像。

2、可以用的镜像

使用这些镜像前可以在浏览器上打开,查看镜像是否可以使用。

DockerHub 镜像仓库 镜像加地址

bestcfipas镜像服务
https://docker.registry.cyou
https://docker-cf.registry.cyou

zero_free镜像服务
https://docker.jsdelivr.fyi
https://dockercf.jsdelivr.fyi
https://dockertest.jsdelivr.fyi

docker proxy
https://dockerpull.com
https://dockerproxy.cn

Docker镜像加速站
https://hub.uuuadc.top
https://docker.1panel.live
https://hub.rat.dev

DockerHub 镜像加速代理
https://docker.anyhub.us.kg
https://docker.chenby.cn
https://dockerhub.jobcher.com

镜像使用说明
https://dockerhub.icu

Docker镜像加速站
https://docker.ckyl.me

镜像使用说明
https://docker.awsl9527.cn

镜像使用说明
https://docker.hpcloud.cloud

DaoCloud 镜像站
https://docker.m.daocloud.io

AtomHub 可信镜像仓库平台 (只包含基础镜像,共336个)
https://atomhub.openatom.cn

3、设置镜像

创建或修改 /etc/docker/daemon.json,我的系统是centos 7,其他的系统没有测试。

在/daemon.json文件中添加下面的镜像,其中的镜像可以替换成上面列出的镜像

{
    "registry-mirrors": [
        "https://<changme>.mirror.aliyuncs.com",
        "https://dockerproxy.com",
        "https://mirror.baidubce.com",
        "https://docker.m.daocloud.io",
        "https://docker.nju.edu.cn",
        "https://docker.mirrors.sjtug.sjtu.edu.cn"
    ]
}

重新启动docker

sudo systemctl daemon-reload
sudo systemctl restart docker
#或者
systemctl restart docker

查看docker信息

docker info

#可以看到新加入的镜像
#Registry Mirrors:
#  https://docker-cf.registry.cyou/
#  https://mirrors.ustc.edu.cn/
#  http://mirrors.tuna.tsinghua.edu.cn/

4、参考网站

1、https://zhuanlan.zhihu.com/p/655419673
2、https://mp.weixin.qq.com/s/CkBJOVO8onYRYR0DmVXaWg

转载于

作者:果蝇的小翅膀
链接:https://www.jianshu.com/p/ce25edea73f5
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值