Issue with Wifi Adapter with Docker Windows (Native, HYPER-V)

24,824

Solution 1

As no one has answered yet, I will try to help, but warn that I do not use Docker and do not have your environment. This is all theory.

My theory is that the problem you are running into is with Windows 10 rather than with Docker or Hyper-V. I see a connection between the fact that on the one hand one cannot have both Ethernet and WiFi connections enabled at the same time, and on the other hand one cannot do NAT with WiFi. Therefore your enabling of NAT might cause the enabling of an Ethernet adapter which disables the wireless adapter.

If I am right, there might be two solutions to the problem :

  1. Connect the computer via wired wired rather than wireless
  2. Create a virtual Ethernet adapter around the wireless adapter:
    • Open Hyper-V manager
    • Click on the Virtual Network Manager and create an Internal Virtual Network by selecting Internal and clicking Add.
    • Give a meaningful Name
    • Apply and OK
    • Now a Virtual Network has been created which can be associated with 1 or more virtual machines.
    • On the host machine, in the Network and Sharing Center click on Change Adapter Settings
    • Select your WiFi Adapter and the Internal Virtual Network you created.
    • Right click and select Bridge Network and the bridge is created.
    • Use the Internal Virtual Network that you created initially for Docker NAT.

If the above does not work for some reason, a software that might be able to help is Connectify Hotspot (shareware/paid), which via its Virtual Router can share WiFi as Ethernet.

Another which might do the job is SoftEther VPN Open Source, which however requires connecting to a VPN in order to use its Virtual Network Adapter.

Solution 2

After trying all types of remedies advised here and there, and with none of them fixing the issue, I eventually found that in my case it was 3rd party software (PulseSecure) that was disabling WiFi whenever Hyper-V adapter was active. So, if you have this software installed as well there is a good chance that it is causing the problem. You can disable "Pulse Secure Service" service to see if that's indeed the case, and if that solves your issue.

Solution 3

Temporary Solution. Disable the vEthernet(DockerNAT) though this will last until your next reboot.

Goto Control Panel => Network and Sharing Center => Change Adapter Settings => Right click on vEthernet(DockerNAT) and Disable.

Share:
24,824

Related videos on Youtube

UsainBloot
Author by

UsainBloot

Updated on September 18, 2022

Comments

  • UsainBloot
    UsainBloot over 1 year

    I just received a brand new work laptop and immediately installed the native version of Docker for Windows.

    However I am seeing an issue that everytime the new network adapter for Docker via Hyper-V is enabled (vEthernet DockerNAT) then my Wifi Adapter is disabled and therefore I can not access the internet.

    Whenever I try to enable the Wifi Adapter it keeps disabling itself immediately, the only way to get my internet back is by deactivating the DockerNAT HyperV Adapter.

    This must surely work otherwise they wouldnt have released the Windows Native version publically?

    Has anyone experienced this issue and know how to fix it? (This is my first experience with Hyper-V)

  • Daniel B
    Daniel B over 7 years
    You can do NAT (or any routing, really) with WiFi upstream no problem. It’s bridging that’s not possible.
  • Jesse
    Jesse almost 6 years
    What also worked for me, is to edit properties of the wifi adapter, to enable sharing via "vEthernet (DockerNAT)". Also had to disable the other adapter, "vEthernet (Default Switch)".
  • rodey
    rodey almost 6 years
    I suffered from the same issue. Pulse version 5.3.4 (1555) with installer name ps-pulse-win-5.3R4.1HF11-b1555-64bitinstaller.msi seems to solve the issue. I can user Hyper-V and Docker and the wifi adapter stays enabled.
  • Nick Klauer
    Nick Klauer over 5 years
    This is very interesting. Unfortunately, I use Pulse Secure for my company's VPN solution, so I don't know if this is something I can disable, as it would result in me not being able to connect at all to work.
  • WoJ
    WoJ almost 5 years
    Where are you setting this up?
  • WoJ
    WoJ almost 5 years
    Ok, found it. It is the Hyper-V manager
  • Jerry Chong
    Jerry Chong over 4 years
    Well, I cannot select "Bridge Connection" in right click menu.
  • Jerry Chong
    Jerry Chong over 4 years
    If you are using PulseSecure for company VPN, this method cannot works.