一份目前能用的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

亲测好使:)

相关推荐
yongui478341 天前
CentOS系统如何查看当前内存容量
linux·运维·centos
xzq_java1 天前
CentOS操作系统虚拟机安装以及连接工具下载和远程连接工具远程连接
linux·运维·centos
楠神说软件测试1 天前
Docker命令(全)
docker
LuiChun1 天前
docker desktop更新到【4.45.0 】后,旧容器镜像都丢失了
docker·容器·dubbo
子兮曰1 天前
🔥C盘告急!WSL磁盘暴增?三招秒清20GB+空间
前端·windows·docker
ZLRRLZ1 天前
【Docker】Docker安装
运维·docker·容器
逐梦吧!旅行者1 天前
Linux之环境变量(内容由浅入深,层层递进)
linux·运维
挨踢攻城1 天前
Linux 应急响应实操 Checklist
linux·运维·linux命令·rhce·rhca·厦门微思网络·linux 应急响应
wanhengidc1 天前
什么是云手机?
运维·网络·安全·游戏·智能手机
optiz1 天前
细菌基因组genome二代测序数据分析
linux·运维·服务器