https://rancher.com/ logo
h

hallowed-art-29425

11/28/2022, 1:35 AM
Hi Team, i'm trying to move from docker-desktop to rancher-desktop , but while using rancher-desktop i'm unable to connect or ping to host machine from container . Trying to find solution for long time no luck , Could you please help on this https://stackoverflow.com/questions/73849870/rancher-desktop-windows-from-container-unable-to-connect-to-host-machine-of
j

jolly-forest-99711

11/28/2022, 9:24 PM
You should be able to talk to your network service listening on the host (Windows) machine from a docker container via
host.docker.internal:3000
. If this isn't the case, it's a bug; can you please create an issue in github to track this? Also, the stackoverflow question probably doesn't have an answer in this case other than "this is a bug."
If you have any atypical (i.e. VPN, proxy, DNS) network configuration, please include info about that in the issue. Logs also help 🙂
h

hallowed-art-29425

11/29/2022, 6:36 AM
i'm working without vpn only .. docker-desktop is also there but i'm not running it parallelly , i doubt is there anything i need to do with hosts file of windows.
j

jolly-forest-99711

11/29/2022, 5:58 PM
Maybe try uninstalling Docker Desktop? I don't think it would cause any problems to have it installed, as long as it isn't running, but you never know. You shouldn't have to do anything with the Windows hosts file
h

hallowed-art-29425

01/17/2023, 7:10 AM
after installing vpn-kit and running whenever needed ( when host.docker.internal poiting required) , i am able to solve this. Please note that i'm working without vpn eventhough i needed vpn kit and need to start vpn kit everytime
Copy code
wsl --import wsl-vpnkit --version 2 $env:USERPROFILE\wsl-vpnkit wsl-vpnkit.tar.gz
wsl -d wsl-vpnkit
wsl.exe -d wsl-vpnkit --cd /app service wsl-vpnkit start
i'm still wondering ..Am i working correctly ? but above solution works well for my entire team who working without vpn.
j

jolly-forest-99711

01/18/2023, 10:20 PM
I haven't heard of this as a solution, but this isn't my area of expertise. @calm-sugar-3169 have you heard of this?
c

calm-sugar-3169

01/18/2023, 11:38 PM
@hallowed-art-29425 you shouldn’t have to use wsl-vpnkit if you are not on a VPN, what version of Rancher Desktop are you using?
h

hallowed-art-29425

01/21/2023, 12:49 PM
@calm-sugar-3169 , i'm using latest rancher desktop version 1.7 .
183 Views