Docker for windows Error: Cannot ping google.com from windows containers

0 votes

I created a container using microsoft/windowsservercore image. But when I tried to ping google.com from inside the container, I got this error:

Ping request could not find host www.google.com. Please check the name and try again.
Oct 16, 2018 in Docker by Sophie may
• 9,870 points
169 views

1 answer to this question.

0 votes

Docker for windows and linux have different default network settings. Typically, the default for linux is bridged mode while in windows you have NAT.

You can alter your configuration with Network Connection Settings for windows

In general I usually use ping 8 8 8 8 since Google cannot be pinged even from my standard windows machine.

answered Oct 16, 2018 by Tyrion anex
• 8,310 points

Related Questions In Docker

0 votes
2 answers
0 votes
1 answer

Error: Docker for Windows not working

The following worked for me: Download VirtualBox 5.03  Reboot ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 9,870 points
117 views
0 votes
1 answer

Error: “Docker for Windows: No hypervisor is present”

I faced the same error and this ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 9,870 points
87 views
0 votes
1 answer

Error: Docker for windows failing to start

I got the same error, just follow ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,310 points
35 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,300 points
265 views
0 votes
1 answer