registry镜像加速器拉取谷歌镜像

中科大镜像地址:http://mirrors.ustc.edu.cn/

中科大github地址:

https://github.com/ustclug/mirrorrequest

Azure中国镜像地址:http://mirror.azure.cn/

Azure中国github地址:

https://github.com/Azure/container-service-for-azure-china

GCR Proxy Cache 帮助(这边走微软的可以直接拉取,那怎么做个自己的呢)

GCR Proxy Cache服务器相当于一台GCR镜像服务器,国内用户可以经由该服务器从gcr.io下载镜像。

使用GCR Proxy Cache从gcr.io下载镜像

docker pull gcr.azk8s.cn/google_containers/<imagename>:<version>

例子

docker pull gcr.azk8s.cn/google_containers/pause-amd64:3.0
docker pull gcr.azk8s.cn/google_containers/kubedns-amd64:1.7

常用镜像仓库 DockerHub镜像仓库: https://hub.docker.com/ 阿里云镜像仓库: https://cr.console.aliyun.com google镜像仓库: https://console.cloud.google.com/gcr/images/google-containers/GLOBAL 如果你本地可以翻墙的话是可以连上去的 coreos镜像仓库: https://quay.io/repository/ RedHat镜像仓库: https://access.redhat.com/containers

国内镜像源

部分国外镜像仓库无法访问,但国内有对应镜像源,可以从以下镜像源拉取到本地然后重改tag即可: Azure Container Registry(ACR)

dockerhub

阿里云google镜像源

或使用azk8spull,只有50行命令的小脚本,就可以从dockerhub、gcr.io、quay.io直接拉取镜像:

测试结果:

我配了一个Dockerhub的regsitry和谷歌镜像的registry。然后再客户机上配置registry mirrors参数,重启docker,centos下运行

systemctl daemon-reload

systemctl restart docker

然后你运行docker system info看下:

docker先向mirror地址1加速器请求,要是这个加速器可以拉到这个镜像,那就在这拉,要是这个加速器拉不到这个镜像,那就向mirror地址2拉镜像,要是第二个镜像加速器也拉不到,那就往 Registry: https://index.docker.io/v1/ 拉.

csdn博客:https://blog.csdn.net/u013276277

最后更新于

这有帮助吗?