在使用k8s的过程中,经常遇到k8s.gcr.io的镜像无法下载的问题,无意间得知可以通过这种方法下载,赶紧记下来;
下载速度还很快,解决我一大难题~
假如需要的镜像为k8s.gcr.io/pause:3.1,可以执行下面的操作
github地址:https://github.com/anjia0532/gcr.io_mirror

docker pull anjia0532/pause:3.1
docker tag anjia0532/pause:3.1 k8s.gcr.io/pause:3.1 docker rmi anjia0532/pause:3.1 也可以用下面这个 docker pull gcr.azk8s.cn/google-containers/pause:3.1 docker tag gcr.azk8s.cn/google-containers/pause:3.1 k8s.gcr.io/pause:3.1 docker rmi gcr.azk8s.cn/google-containers/pause:3.1

注:pause:3.1可以替换为任何k8s.gcr.io的镜像