This message was deleted.
# rancher-desktop
a
This message was deleted.
c
Hi Eric, Can you elaborate a bit more on what you are trying to achieve? The “Enable Networking Tunnel” Allows rancher desktop to operate behind a VPN (e.g accessing private registry, etc). It shouldn’t impact your internet access on your ubuntu distro.
i
Ah, ok. Sorry. Documentation is sparse. I was thinking it allowed WSL2 Distros to actually be able to connect to the internet without workarounds.
h
Thanks for the clarification Nino. Eric, It sounds like you're already familiar with this, but if not, this Windows documentation may help. https://learn.microsoft.com/en-us/windows/wsl/networking
i
I have gone through all of the docs I can find. The best I ever got to work was adding nameserver 8.8.8.8 to the /etc/resolve.conf on boot
👍 1
c
When running another distro while using rancher desktop, the
/etc/resolve.conf
should be set to the wsl’s subnet gateway which is same IP address as the
Ethernet adapter vEthernet (WSL)
on your host (if you do ipconfig one the host, you can confirm). Regardless of having to enable the experimental network tunnel or not the entry of the
/etc/resolv.conf
should stay the same. Are you running something in the distro that is changing the
resolve.conf
file?
i
This is what I have set. I have had to add a command on boot to load the nameserver 8.8.8.8. With that. I can get online, but that is the only thing that has worked so far.
c
That looks correct, do you have any setup that might be blocking traffic to that IP address?
i
I can ping the address. The issue then comes when I want to do a docker pull command. It can't resolve DNS
The MS doc that you linked to had the command to use
wsl hostname -i
and
wsl hostname -I
I did try both ways to no avail.
c
Are you behind a VPN?
i
I was. I tried it again to the same result. I took out the
nameserver 8.8.8.8
for the test
c
If you are behind a VPN then you would need to enable network tunnel, however docker pull will not work from the Ubuntu distro since we have not implemented the WSL integration yet. However, you should be able to docker pull from the host.
i
Ok. Understand and thank you. It looks like it is in the works. That is great to hear.
👍 1
493 Views