一份目前能用的docker镜像源配置

网上找到如下几个目前还能用的镜像源。如果你在拉取镜像过程中报错,不妨试试。

配置方法:需要在/etc/docker/daemon.json中配置registry-mirrors,如果没这个文件,可以直接使用如下命令新增一个该文件并配置registry-mirrors。

复制代码
cat <<EOF | sudo tee /etc/docker/daemon.json
{
    "registry-mirrors": [
        "https://ustc-edu-cn.mirror.aliyuncs.com/",
        "https://ccr.ccs.tencentyun.com/",
        "https://docker.m.daocloud.io/",
  "https://dockerhub.azk8s.cn",
  "https://mirror.baidubce.com",
  "https://docker.nju.edu.cn",
  "https://mirror.iscas.ac.cn",
  "https://dockerhub.icu",
  "https://docker.anyhub.us.kg",
  "https://hub.gog.email",
  "https://dockerpull.com",
  "https://atomhub.openatom.cn" 
    ]
}
EOF

同时配置完成之后要重启docker daem。如下命令:

复制代码
sudo systemctl enable docker
sudo systemctl daemon-reload
sudo systemctl restart docker

亲测好使:)

相关推荐
蓁蓁啊12 分钟前
GIT使用SSH 多账户配置
运维·git·ssh
程序猿小三3 小时前
Linux下基于关键词文件搜索
linux·运维·服务器
虚拟指尖3 小时前
Ubuntu编译安装COLMAP【实测编译成功】
linux·运维·ubuntu
椎4954 小时前
苍穹外卖前端nginx错误之一解决
运维·前端·nginx
刘某的Cloud4 小时前
parted磁盘管理
linux·运维·系统·parted
极验5 小时前
iPhone17实体卡槽消失?eSIM 普及下的安全挑战与应对
大数据·运维·安全
爱倒腾的老唐5 小时前
24、Linux 路由管理
linux·运维·网络
yannan201903135 小时前
Docker容器
运维·docker·容器
_清浅5 小时前
计算机网络【第六章-应用层】
运维·服务器·计算机网络
正在努力的小河5 小时前
Linux 自带的 LED 灯驱动实验
linux·运维·服务器