Docker国内可用镜像源配置2024.6.25更

针对 docker 被墙无法pull,配置可用的镜像地址

2023.6.18之后发现 docker pull无法拉去镜像,经测试常用的国内镜像地址已经不可用,如:Docker中国区官方、清华、中科技大学、163、华为、部分阿里等

可用镜像如下:(2024年6月25日更)

https://dockerhub.timeweb.cloud            timeweb
https://dockerhub.icu                      icu
https://docker.1panel.live                 1panel
https://dockerhub.jobcher.com              打工人日记
https://hub.rat.dev                        rat
https://docker.anyhub.us.kg                anyhub
https://docker.ckyl.me                     ckyl
https://docker.211678.top                  personal
https://noohub.ru                          error 500
https://dockerproxy.com                    镜像代理Docker
https://docker.nju.edu.cn                  南京大学
https://docker.mirrors.sjtug.sjtu.edu.cn   上海交通大学(网络较慢)

使用方法:

编辑或新建/etc/docker/daemon.json文件,向其中添加registry-mirrors项,使最终配置类似:

{
  "registry-mirrors": ["https://dockerhub.icu"]
}

修改后重载守护进程

systemctl daemon-reload
systemctl restart docker

参考:
https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
https://www.v2ex.com/t/949738#r_13235392
https://linux.do/t/topic/114516

自建镜像源项目:
dqzboy/Docker-Proxy: 🔥 🔥 🔥 自建Docker镜像加速服务,基于官方Docker Registry 一键部署Docker、K8s、Quay、Ghcr等镜像加速\管理服务。支持部署到Render (github.com)

Author: thinkwei

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注