-
Notifications
You must be signed in to change notification settings - Fork 302
Open
Labels
Description
Expected behavior
Create Hyper-V VM and ping google.com works
Looks like Default Switch is a new built in Hyper-V natted virtual switch that is created by default now when you install Hyper-V in the latest windows version. I don't think docker is expecting this.
Actual behavior
ping google.com results in
Ping request could not find host google.com. Please check the name and try again.
Information
- Diagnostic ID from "Diagnose & Feedback" in the menu.
CB980F31-37E6-4F94-8622-E16E6ADBFA2A/2017-10-04_11-57-30 - a reproducible case if this is a bug, Dockerfiles FTW
- page URL if this is a docs issue or the name of a man page
- host distribution and version (Windows version, build number, etc)
Windows 10 Enterprise Build 16299.rs3_release.170922-1354
Docker 17.09.0-ce, build afdb6d4
Steps to reproduce the behavior
- Install All the following windows components Containers, Guarded Host (Optional), Hyper-V (All), Windows Defender Application Guard (Optional)
- Create Hyper-V VM and assign it's network to the default built in "Default Switch"
- Open VM and ping google.com and things work as expected
- Install docker for windows (default is Linux mode when you first install)
- Open VM and ping google.com and things still work as expected
- Switch docker to windows mode
- Open VM and ping google.com and things no longer work as expected you get the error "Ping request could not find host google.com. Please check the name and try again."
- If you ping 8.8.8.8 or 172.217.9.206 (Google) things still work as expected so it appears to be something with DNS that docker is breaking in windows mode for the Hyper-V Default Switch
I've attached some diagnostics from the script WindowsContainerNetworking-LoggingAndCleanupAide.ps1 if it offers any help.
FYI, networking inside the containers are working fine, this is just an issues in the Hyper-V VMs.
Thanks.
xswordsx, evil-shrike, osoftware, draggeta, whelanp and 10 more