Skip to content
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

! VM is unable to access k8s.gcr.io, you may need to configure a proxy or set --image-repository #5860

Open
damangueyu opened this issue Nov 7, 2019 · 15 comments

Comments

@damangueyu
Copy link

@damangueyu damangueyu commented Nov 7, 2019

重现问题所需的命令

失败的命令的完整输出

minikube logs命令的输出

使用的操作系统版本

@medyagh

This comment has been minimized.

Copy link
Member

@medyagh medyagh commented Nov 7, 2019

@damangueyu it seems like you dont have access to k8s.gcr.io.

do you mind to try to start minikube with this option ?

minikube start --image-mirror-country=cn

@Goend

This comment has been minimized.

Copy link

@Goend Goend commented Nov 8, 2019

i did it
minikube start --image-mirror-country=cn
but it happened again

@monkeyWie

This comment has been minimized.

Copy link

@monkeyWie monkeyWie commented Nov 13, 2019

try this option --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers

@xvrzhao

This comment has been minimized.

Copy link

@xvrzhao xvrzhao commented Nov 18, 2019

I encountered the same problem, have you solved it?

@xvrzhao

This comment has been minimized.

Copy link

@xvrzhao xvrzhao commented Nov 18, 2019

I have solved that with the following command:

$ minikube start --vm-driver=virtualbox --registry-mirror=https://registry.docker-cn.com --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
@gbraad

This comment has been minimized.

Copy link
Contributor

@gbraad gbraad commented Nov 18, 2019

@dongwangdw

This comment has been minimized.

Copy link

@dongwangdw dongwangdw commented Dec 16, 2019

minikube start --vm-driver=virtualbox --registry-mirror=https://registry.docker-cn.com --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers

This does not work for me. I got "failed: UNAUTHORIZED: "authentication required"

@dongwangdw

This comment has been minimized.

Copy link

@dongwangdw dongwangdw commented Dec 16, 2019

https://stackoverflow.com/questions/54803393/run-minikube-start-cannot-pull-k8s-gcr-images-but-docker-pull-can-do/59350432#59350432

This works for me.

@littlesmilelove

This comment has been minimized.

Copy link

@littlesmilelove littlesmilelove commented Dec 18, 2019

minikube start --vm-driver=virtualbox --registry-mirror=https://registry.docker-cn.com --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers

This does not work for me. I got "failed: UNAUTHORIZED: "authentication required"

Get the same issue. This is my command:

$ minikube start --image-mirror-country=cn --iso-url=https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.6.0.iso --registry-mirror=https://dockerhub.azk8s.cn  --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --vm-driver="hyperv" --hyperv-virtual-switch="minikube v switch"  --memory=4096 
@medyagh

This comment has been minimized.

Copy link
Member

@medyagh medyagh commented Jan 29, 2020

@littlesmilelove does the answer provided here help ? #5860 (comment)

@littlesmilelove

This comment has been minimized.

Copy link

@littlesmilelove littlesmilelove commented Jan 30, 2020

@littlesmilelove does the answer provided here help ? #5860 (comment)

Yes, it does. But the first time I run it failed. I need to retry a few times. The minikube version is V1.6.0.

@priyawadhwa

This comment has been minimized.

Copy link
Collaborator

@priyawadhwa priyawadhwa commented Mar 11, 2020

Hey @damangueyu @littlesmilelove has this issue been resolved for you?

@xiangwangcheng

This comment has been minimized.

Copy link

@xiangwangcheng xiangwangcheng commented Mar 24, 2020

$ minikube start --vm-driver=virtualbox --registry-mirror=https://registry.docker-cn.com --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
occured error
image

@xiangwangcheng

This comment has been minimized.

Copy link

@xiangwangcheng xiangwangcheng commented Mar 24, 2020

It worked when i deleted --image-mirror-country=cn

@jk2K

This comment has been minimized.

Copy link

@jk2K jk2K commented Mar 24, 2020

$ minikube start --vm-driver=virtualbox --registry-mirror=https://registry.docker-cn.com --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
occured error
image

it's a bug, see #7052

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.