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.