-
Notifications
You must be signed in to change notification settings - Fork 285
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
host.docker.internal isn't working properly with rancher desktop #3686
Comments
@devNaresh , Can you please try creating a firewall rule as described in this faq After creating the firewall rule, below steps worked for me.
|
@gunamata I have created firewall rule but still not working. I am running python server on ubuntu wsl machine and curl in racher desktop shell. I am using windows 11 with latest update of wsl (microsoft store version)
|
@devNaresh , Running the python server on Ubuntu and accessing the end point within rancher desktop shell works for me. I am wondering if it's the anti virus program on your machine or a specific VPN setup you may have, that's causing problems for you. Just to narrow down the investigation a bit, Would you be able to try the same steps by disabling your anti virus and not connecting to VPN, and see if it works? |
@gunamata i tried with firewall off, still no luck. I am not using any VPN. I also tried on fresh windows install but no luck. |
@devNaresh , In my last message, when I mentioned that it worked I actually tried |
Hi @devNaresh if you take a look at the Since the WSL network stack is shared across all the distros by default, you can access the services that are hosted on other distros using |
@devNaresh I'm going to close this issue, feel free to re-open it if you encounter anything additional. |
Hi @Nino-K, I am not able to make /etc/hosts file contains this: 127.0.0.1 auth-server 192.168.1.92 host.docker.internal 127.0.0.1 kubernetes.docker.internal |
I found ticking the "enable networking tunnel" under Rancher Desktop > File > Preferences > Network solved the problem for me; now I am able to hit "localhost" ... https://superuser.com/questions/1750492/unable-to-resolve-localhost-after-having-installed-rancher-desktop |
HI @davidbarrowsatasos |
Hi @gauravmanerkar I am just a user who posted something on this issue to share the experience I had which I felt was related. I don't represent Rancher. It appears @Nino-K is more closely involved with this project. |
@gauravmanerkar Please file a new bug with the complete information about your configuration, what you have done, and how it failed for you. Just because part of the error message is the same doesn't mean that the root cause is the same. Also adding to a closed issue means that the comment will be lost unless somebody responds to it right away because of an email notification. But in the issue list it is still marked as resolved. |
having the same issue |
Actual Behavior
I am trying to reach a service running on my host machine using
host.docker.internal
and its not working. I can reach same service from rancher desktop wsl maching using localhost.Steps to Reproduce
Just run any hello word application on host machine or ubuntu wsl machine and try to curl into that
Result
Max retries exceeded with url
Expected Behavior
Additional Information
No response
Rancher Desktop Version
1.7.0
Rancher Desktop K8s Version
1.24.6
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
windows 11
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
No response
The text was updated successfully, but these errors were encountered: