我正在使用microsoft/windowsservercore
图像创建容器。然后,当我试图从容器内部ping google.com后,我得到这个错误:用于Windows的Docker:无法从Windows容器ping google.com
Ping request could not find host www.google.com. Please check the name and try again.
然后我切换到Linux Container
模式泊坞窗的窗口。然后在Ubuntu的容器中尝试,但这次它工作正常。然后,当我切换回Windows Container
模式并再次尝试相同的事情时,这次它工作。虽然我的问题已经解决,但我仍然不明白是什么原因造成了这个问题?