程序员

minikube 镜像被墙问题 k8s.gcr.io

2019-04-16  本文已影响0人  呼呼呼嘻嘻

问题:

网络原因 k8s.gcr.io 拉取不到。


[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-apiserver:v1.14.0: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), error: exit status 1
[ERROR ImagePull]: failed to pull image k8s.gcr.io/kube-controller-manager:v1.14.0: output: Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), error: exit status 1
... ...

百度一下给出的方案一般是:拉其他镜像回来然后改 tag。一个一个拉,一个一个改,蛋疼。

跑 github 上看了下 minikube,赫然写着


startCmd.Flags().String(imageRepository, "", "Alternative image repository to pull docker images from. This can be used when you have limited access to gcr.io. For Chinese mainland users, you may use local gcr.io mirrors such as registry.cn-hangzhou.aliyuncs.com/google_containers")

。。。

上一篇下一篇

猜你喜欢

热点阅读