Skip to content

Docker windows mode breaks Hyper-V vEthernet (Default Switch) #1166

@AceHack

Description

@AceHack

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

  1. Install All the following windows components Containers, Guarded Host (Optional), Hyper-V (All), Windows Defender Application Guard (Optional)
  2. Create Hyper-V VM and assign it's network to the default built in "Default Switch"
  3. Open VM and ping google.com and things work as expected
  4. Install docker for windows (default is Linux mode when you first install)
  5. Open VM and ping google.com and things still work as expected
  6. Switch docker to windows mode
  7. 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."
  8. 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.

PreCleanupState_TNDQFBTE.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions