-
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
! This container is having trouble accessing https://registry.k8s.io #15649
Comments
I have the same issue. |
no. |
I'm also having the same issue. I do not have a proxy configured, and I can connect to the site in my browser. |
We found the issues only happens when I try to install Docker Engine directly in WSL2(Ubuntu), switch to Docker Desktop fixed this issue, major difference is when using with docker desktop: nameserver 192.168.65.2 with docker engine: nameserver 192.168.49.1 |
Thank you! |
Unfortunately I am unable to install Docker Desktop on my machine (it's a work laptop and Docker Desktop requires licence which I don't have). So this solution isn't suitable for me. Do you have any other recommendation? |
My recommendation is using Ubuntu VM directly, the |
how to use ubuntu vm directly? I have docker desktop, still getting same issue. |
This doesn't fully explain the issue, though. I have three development PCs, different hardware but the same OS configuration. All three are: minikube version: v1.32.0 All three are running Docker engine under WSL. All three have identical docker network configurations for minikube: [ You can see the gateway is 192.168.49.1. If I remote into the minikube container, cat /etc/resolv.conf gives me: nameserver 192.168.49.1 This is the correct configuration for pointing the nameserver at the gateway. On two of the machines (the ones that work) if I then do nslookup registry.k8s.io I get: Server: 192.168.49.1 The issue on the machine that's displaying the title error is that when you do an nslookup from the host machine, it works, but not from the container: ...:~$ nslookup registry.k8s.io Non-authoritative answer: ...:~$ docker exec -it minikube /bin/bash ** server can't find registry.k8s.io: SERVFAIL root@minikube:/# The problem isn't that 192.168.49.1 is the wrong configuration. It's definitely the correct configuration. When running under WSL using desktop probably avoids the issue because docker desktop would provide DNS services via the host in a way that doesn't involve WSL. The actual issue appears to be something more along the lines of "DNS resolution fails when running minikube on Ubuntu 22.04 despite being correctly configured on some system configurations." All three of these machines have reasonably fresh installations of Ubuntu. The machine I'm having issues with is brand new. Since the WSL parition was brand new I blew it away and started from scratch. Same issue. It appears to somehow be machine specific, which is very strange since the issue looks like it's somewhere between Minikube and the Docker networking stack. It's not blocking all traffic or preventing access to the host, though. If I run a service that listens on port 5555 on the host and connect to minikube I can do this: $ docker exec -it minikube /bin/bash And that's working fine. Likewise nslookup doesn't appear to be failing to find dns services, it's just that resolution inexplicably fails. I'm not sure what additional diagnosis I can do on this issue, but given that I both have it working fine on two machines and have the issue on a third, I'd be happy to provide any additional information necessary to track the issue down. For licensing reasons, using Docker Desktop isn't an option for me, and I need this working on the new machine as it is supposed to replace one of the other machines (which is now 9 years old and needs to be retired.) |
I'm experiencing the same issue. I don't have a proxy set up, yet I can access the site through my browser. |
|
scaled down to one version, however the dashboard is still not running. |
What Happened?
minikube start --embed-certs
! This container is having trouble accessing https://registry.k8s.io
W0114 09:42:59.673348 875426 out.go:239] * To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
Attach the log file
Docker driver.
Operating System
Ubuntu
Driver
Docker
The text was updated successfully, but these errors were encountered: