I switched between stable and edge version of Docker for Windows. Apparently, I did something that my windows containers lost internet connection.
It took me about a day and then find this issue in the github,Windows containers can't access the internet.
- Check the interfaceMeric
Get-NetIPInterface -AddressFamily IPv4 | Sort-Object -Property InterfaceMetric -Descending
- make sure the primary network adapter has the lowest number
Set-NetIPInterface -InterfaceAlias 'Wi-Fi' -InterfaceMetric 3