配置Docker镜像源

配置Docker镜像源

1、打开或创建daemon.json文件

shell 复制代码
/etc/docker/daemon.json

2、在daemon.json文件中写入下面的内容

json 复制代码
{
  "registry-mirrors": [
    "https://docker.anyhub.us.kg/"
	,"https://hub.uuuadc.top/"
	,"https://dockerhub.jobcher.com/"
	,"https://dockerhub.icu/"
	,"https://docker.ckyl.me/"
	,"https://docker.awsl9527.cn/"
	,"https://q7ta64ip.mirror.aliyuncs.com"
	,"https://hx983jf6.mirror.aliyuncs.com"
	,"https://docker.mirrors.ustc.edu.cn"
	,"https://hub-mirror.c.163.com"
	,"https://docker.m.daocloud.io"
	,"https://mirror.baidubce.com"
	,"https://docker.nju.edu.cn"
	,"https://jockerhub.com"
	,"https://dockerhub.azk8s.cn"
	,"https://dockerproxy.com"
	,"https://mirror.baidubce.com"
	,"https://docker.nju.edu.cn"
	,"https://mirror.iscas.ac.cn"
	,"https://dockerpull.org",
    "https://docker.1panel.dev",
    "https://docker.fxxk.dedyn.io",
    "https://docker.xn--6oq72ry9d5zx.cn",
    "https://docker.zhai.cm",
    "https://docker.5z5f.com",
    "https://a.ussh.net",
    "https://docker.cloudlayer.icu",
    "https://hub.littlediary.cn",
    "https://hub.crdz.gq",
    "https://docker.unsee.tech",
    "https://docker.kejilion.pro",
    "https://registry.dockermirror.com",
    "https://hub.rat.dev",
    "https://dhub.kubesre.xyz",
    "https://docker.nastool.de",
    "https://docker.udayun.com",
    "https://docker.rainbond.cc",
    "https://hub.geekery.cn",
    "https://docker.1panelproxy.com",
    "https://atomhub.openatom.cn",
    "https://docker.m.daocloud.io"
  ]
}

3、让配置生效

shell 复制代码
systemctl daemon-reload
systemctl restart docker
相关推荐
虎头金猫1 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
分布式存储与RustFS1 天前
MinIO 官方 Docker 镜像被移除:依赖它的项目该怎么办
docker·云原生·devops·对象存储·minio·分布式存储
AI职业加油站1 天前
AI智能体应用工程师证书:政策红利下的职业新风口
大数据·运维·人工智能·学习·职场发展
此冬歌咏1 天前
K8s 节点故障实战:优雅驱逐 31 秒,硬故障 331 秒,以及那个永远 Pending 的 Pod
运维·k8s
玉&心1 天前
通过Arthas在线诊断K8S中的内存及JVM等使用情况
docker·k8s·arthas
xing-xing1 天前
Docker容器中Nginx站点根目录网页配置访问
nginx·docker
-梅1 天前
linux(8) 软硬链接
linux·运维·服务器
赵文宇(温玉)1 天前
CoreDNS的hosts插件的缺行配置导致k8s集群异常
容器·kubernetes·rancher
guo_wen_qiang1 天前
上传本地镜像到harbor中
docker·容器·持续部署
张洛闻Eren1 天前
k8s云原生【第十课】:水平 Pod 自动扩缩容
运维·数据库·云原生·kubernetes·github