由于许多公开镜像站已不再可用,我们建立了一个公益镜像仓库供大家下载使用。然而,由于镜像仓库的带宽有限,建议用户自行搭建。以下是相关资源和使用方法:
Github仓库地址:?https://github.com/kubesre/docker-registry-mirrors
您可以根据 镜像同步 Issue 模板 创建一个 Issue, 将会有机器人帮您优先主动同步指定的镜像 同步结果会在 Issue 中更新。
接下来通过案例进行演示一下:
# 拉取k8s镜像,拉取失败,详情如下
$ docker pull k8s.gcr.io/pause:3.2
Error response from daemon: Get "https://k8s.gcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
那我们提个Issue同步一下:浏览器输入:https://github.com/kubesre/docker-registry-mirrors
并点击,镜像同步 Issue 模板 :
输入拉取不了的镜像,并点击提交:
同步结果如下:
可以根据下图信息进行拉镜像:
# 拉取成功,速度挺快的
$ docker pull swr.cn-east-3.myhuaweicloud.com/kubesre/k8s.gcr.io/pause:3.2
3.2: Pulling from kubesre/k8s.gcr.io/pause
c74f8866df09: Pull complete
Digest: sha256:4a1c4b21597c1b4415bdbecb28a3296c6b5e23ca4f9feeb599860a1dac6a0108
Status: Downloaded newer image for swr.cn-east-3.myhuaweicloud.com/kubesre/k8s.gcr.io/pause:3.2
swr.cn-east-3.myhuaweicloud.com/kubesre/k8s.gcr.io/pause:3.2
欢迎大家提Issue同步镜像,拉取镜像无烦恼!