I’m running on a windows 10 pc. I installed Docker for Windows and enabled both Containers and Hyper-V in windows features. Virtualization is enabled in the bios.
When I run
docker run mcr.microsoft.com/windows/nanoserver ping google.com I receive the following:
Ping request could not find host google.com. Please check the name and try again.
And when I run
docker run mcr.microsoft.com/windows/nanoserver ping 220.127.116.11, I get the following:
Pinging 18.104.22.168 with 32 bytes of data: Request timed out. Reply from 172.18.81.109: Destination host unreachable. Request timed out. Request timed out. Ping statistics for 22.214.171.124: Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),
If I run either from my host machine, they work appropriately.
I have run the debug script here: https://github.com/MicrosoftDocs/Virtualization-Documentation/tree/live/windows-server-container-tools/Debug-ContainerHost and all tests passed.
Any idea why my container can’t route to the outside internet?