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

minikube windows, failing registry test inside the container #20264

Open
SirRedan opened this issue Jan 15, 2025 · 1 comment
Open

minikube windows, failing registry test inside the container #20264

SirRedan opened this issue Jan 15, 2025 · 1 comment

Comments

@SirRedan
Copy link

What Happened?

When starting a new cluster i notice that it always fails to connect to the registry from inside the minikube container.

Image

using minikube start --alsologtostderr -v=7 i notice that it reports being unable to connect to the registry

W0115 16:42:44.610131 26748 start.go:867] [curl.exe -sS -m 2 https://registry.k8s.io/] failed: curl.exe -sS -m 2 https://registry.k8s.io/: Process exited with status 127
stdout:

stderr:
bash: line 1: curl.exe: command not found

from what i've managed to dig up it seems that because i'm running on windows the runtime.GOOS == "windows" is true. making the curl command become curl.exe

this happens in minikube/pkg/minikube/node/start.go line 862

but it also tries to perform curl.exe inside the container, which is the default minikube image. this image has "curl" but not "curl.exe"

unless "curl.exe" is somehow supposed to be inherited from outside the container this will always fail inside the container.

Image

My theory on how to fix this would be to add logic to determine the environment of the container before trying to run curl.

Attach the log file

log.txt

Operating System

Windows

Driver

Docker

@shashikumaarb
Copy link

+1 I have the same problem.

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

No branches or pull requests

2 participants