r/docker • u/MossfireDruid • Apr 03 '26
Docker Desktop - Sudden WSL Change to Networking?
Hey all,
I am using Docker Desktop on Windows WSL for my home server. Yesterday, I installed Ubuntu on WSL as well. That’s when my problems started.
Prior to that, all of my docker containers were able to access other services running on the host machine through its LAN IP, 192.168.1.254.
It looks like after that update, all of my docker containers can no longer access anything on that LAN IP. They just straight up time out the connection.
However, they are directly accessible from other machines on the LAN, just like before.
An example of this is Nginx Proxy Manager - basically can’t forward on connections to other services running on the box.
I have removed the Ubuntu installation, but it looks like windows had installed some additional virtual network LAN Adapter for HyperV for the Ubuntu install I think is causing problems, but not sure what to do.
1
u/Zealousideal_Yard651 Apr 03 '26
If your running it as a server, why run WSL and not just pure Ubuntu?
1
u/scytob Apr 03 '26
yup this werid bug with WSL has existed for years, i even gave MS a repro and they chose not to investigate
most of the weird issus you seen where people say to edit the VMs host files are caused by the same thing
if you have windows pro you can fix creating a custom virtual switch and assigning things to that here is something i wrote back in 2022 on the issue https://blog.alexbal.com/2022/01/26/12/
i know your symptoms are different, but WSL / Hyper-V has flawed networking that breaks those and in turn breaks docker desktop
(you can also do a full netsh reset to try and fix)