Skip to content

Docker HyperV vEthernet (DockerNAT) is Un-identified Network (Public Network) in tray #367

@vowstar

Description

@vowstar

Expected behavior

Hide the tray icon of vEthernet (DockerNAT)

Actual behavior

The system tray always show vEthernet (DockerNAT) is Un-identified Network (Public Network)

Information

  • System: Microsoft Windows 10 Professional 10.0.14393
  • Docker: Docker 1.12.5
  • A laptop with Wi-Fi

Steps to reproduce the behavior

Method 1

  1. Install Docker 1.12.5 (Hyper V version of Windows) or other version.
  2. Unplug all network interface, close Wi-Fi, etc.
  3. The tray icon of vEthernet (DockerNAT) will show, and is Un-identified Network.

Method 2

  1. Install Docker 1.12.5 (Hyper V version of Windows) or other version.
  2. Unplug all network interface, connect Wi-Fi.
  3. Uninstall Wi-Fi driver.
  4. Reboot and install Wi-Fi driver, connect Wi-Fi.
  5. The tray icon of vEthernet (DockerNAT) will always show, and is Un-identified Network. We can't see Wi-Fi status at all.

Thinking of how to fix

Add the key "*NdisDeviceType" with a DWORD value of 1 to vEthernet (DockerNAT)
adapter in registry.

  1. Find Hyper-V Virtual Ethernet Adapter in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\*

  2. Check NETSETUPPKEY_Interface_IfAliasBase in NetSetupProperties ,
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\????\NetSetupProperties, check if NETSETUPPKEY_Interface_IfAliasBase is vEthernet (DockerNAT).

  3. Add the key "*NdisDeviceType" with a DWORD value of 1 to this Ethernet Adapter to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\????

I've tested it and success, please consider improve it.

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