Docker Hub国内无法访问的解决方法 (2025-04-28更新)
当前在国内可用的镜像站点 👀
镜像加速地址 | 镜像当前状态 | 是否有限制 | 最近验证事件 |
---|---|---|---|
https://docker.1ms.run | 毫秒镜像源:正常(推荐) | ||
https://dockercf.jsdelivr.fyi | 毫秒镜像源:正常(推荐) | ||
https://docker.jsdelivr.fyi | 毫秒镜像源:正常(推荐) | ||
https://dockertest.jsdelivr.fyi | 毫秒镜像源:正常(推荐) | ||
https://hub.rat.dev | 正常 | ||
https://docker.1panel.live | 正常 | ||
https://docker.zhai.cm | 正常 | ||
https://a.ussh.net | 正常 | ||
https://docker.sunzishaokao.com | 正常 | ||
https://docker.xuanyuan.me | 正常 | ||
https://docker.mybacc.com | 正常 | ||
https://dytt.online | 正常 | ||
https://lispy.org | 正常 | ||
https://docker.xiaogenban1993.com | 正常 | ||
https://docker.yomansunter.com | 正常 | ||
https://aicarbon.xyz | 正常 | ||
http://docker-pull.ygxz.in | 正常 | ||
https://docker.m.daocloud.io | 正常 | 存在镜像白名单 | |
https://atomhub.openatom.cn | 正常 | ||
https://dockerhub.jobcher.com | 正常 | ||
https://docker.registry.cyou | 正常 | ||
https://docker.awsl9527.cn | 正常 | ||
https://docker.ckyl.me | 正常 | ||
https://hub.uuuadc.top | 正常 | ||
https://docker.chenby.cn | 正常 | ||
失效 | |||
失效 |
其他作者镜像收集更新直达
- https://liuchenyang0703.github.io/ToLiucyLinux/document/Docker/registry-1.docker.iov2.html
- https://www.liuchenyang.top/document/Docker/registry-1.docker.iov2.html
一些国外镜像站
huecker(俄罗斯)
镜像地址:https://huecker.io
支持:Docker Hub
特点:免费、无需授权
timeweb.cloud(俄罗斯)
镜像地址:https://dockerhub.timeweb.cloud
支持:Docker Hub
特点:免费、无需授权
NooSoft(俄罗斯)
镜像地址:https://noohub.ru
支持:Docker Hub
特点:免费、无需授权、网络稳定性差
Yandex(俄罗斯)
镜像地址:https://mirror.yandex.ru/
支持:Docker Hub
镜像使用方式
方式1:修改 docker 配置 daemon.json
- 使用趁手的方式修改 daemon.json
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://huecker.io",
"https://dockerhub.timeweb.cloud",
"https://noohub.ru"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
- 修改成功后,通过docker pull 拉取镜像。
方式2:使用 Portainer 的 Registries
- 在 Portainer 的 Settings 中找到 Registries,点击 Add Registry,选择 Custom registry,新建一个Registry。
- Name 填入镜像服务名称,Registry URL 填入上面的镜像地址。
- 在Add Container时或者 Pull image时,选择上一步自定义的Registry。
重命名镜像操作
代理拉取镜像
docker pull dockerproxy.com/linuxserver/nginx:latest
dockerproxy.com已墙,通过上面介绍的方式拉取
重命名镜像
docker tag dockerproxy.com/linuxserver/nginx:latest linuxserver/nginx:latest
删除代理镜像
docker rmi dockerproxy.com/linuxserver/nginx:latest
评论
dockerpull.com 可以用这个