-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pulling kic base image does not respect --image-repository or --image-mirror-country flags for CN registry mirrors #7447
Comments
The above workaround of building from source will work for now, we'll work on making kicbase available somewhere. |
We don't maintain the CN registry mirror - and do not know how to contact those who do. |
我也遇到了,正在想办法解决 |
你提供的解决方案很有价值。 同时推断,当driver=docker 时,岂不是所有墙内的用户都无法完成minikube start了? |
你好,你分享的经验很有价值! 结合我这边操作发现: 供参考,握手! |
官方已推镜像,大家可以试试~~~ |
|
|
使用新的1.10.0版本指定--base-image registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.10 |
好像还是不行:
|
试试这个,我正常启动了 |
@sigmaol 这样可以了,多谢~ |
不行...😪 |
@lubocheng 不清楚跟网络有没有关系。我在移动网络下,就会失败。换成联通就好了。 |
@carvendy @spartucus @lubocheng @sigmaol @lubocheng @CHENZHIKANG in latest version of minikube (v1.11.0) we added the kicbase image(#7943) to docker hub, do you mind trying the latest version and see if that works for you without adding any tricks? this should just work minikube delete here is the image on docker hub: --- google translate: 在最新版本的minikube(v1.11.0)中,我们将kicbase映像添加到了docker hub,您是否介意尝试最新版本并查看它是否对您有效而未添加任何技巧? 这应该工作 minikube删除 这是Docker Hub上的图像: |
this issue is Partially fixed by providing docker hub image but it is still a problem that it should respect the user-provided mirror as said in this comment #7915 (comment) and minikube should try to download the kicbase image from the user provided mirror for better speed |
I tried latest version(v1.11.0) on ubuntu18.04, minikube started and downloaded images successfully! Everything looks good to me, well done! |
@spartucus glad to see that was fixed, in v1.11.0 we pushed a fallback image to dockerhub that probably fixed it. so if user specificies a mirror, we should download the base image from that mirror. |
This works! |
It looks like this is working with registry mirrors as well! I'm going to go ahead and close this issue; but if anyone is still seeing errors please reopen by including /reopen in your comment. |
This is still an issue.
|
For my situation is, first minikube pull from gcr.io but failed, then it trys to pull from docker.io.
|
I tried Windows 10 which behind the same enterprise proxy, with or without --image-mirror-country=cn both works.
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
This should be fixed. |
重现问题所需的命令:
失败的命令的完整输出:
minikube start --registry-mirror=https://registry.docker-cn.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --vm-driver=docker --alsologtostderr -v=8
minikube logs
命令的输出:W0406 10:08:19.436876 13086 exit.go:101] Failed to start docker container. "minikube start" may fix it.: recreate: creating host: create: creating: create kic node: create container: failed args: [run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume minikube:/var --cpus=2 --memory=2200mb --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 gcr.io/k8s-minikube/kicbase:v0.0.8@sha256:2f3380ebf1bb0c75b0b47160fd4e61b7b8fef0f1f32f9def108d3eada50a7a81] output: Unable to find image 'gcr.io/k8s-minikube/kicbase:v0.0.8@sha256:2f3380ebf1bb0c75b0b47160fd4e61b7b8fef0f1f32f9def108d3eada50a7a81' locally
docker: Error response from daemon: Get https://gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
: exit status 125
使用的操作系统版本:
ubuntu 18.04
The text was updated successfully, but these errors were encountered: