Docker Community Forums

Share and learn in the Docker community.

Hyper-V was unable to find a virtual switch with name "DockerNAT"


(Gopinathdk) #1

I have Docker version - Version 17.09.0-ce-win33 (13620)

I am getting this error while starting docker
Hyper-V was unable to find a virtual switch with name “DockerNAT”.

I have my Hyper-V and Virtualization enabled.

But as per some forums, I see Hyper-V switch is not displayed in my Network adapters.

I tried factory reset, uninstall & install hyper-v but it didn’t solve the issue.

Please advise.


(Kevin Imbrechts) #2

Hello !
In Hyper-V Manager, click on “Virtual Network Manager”. Is there the DockerNAT switch?


(Gopinathdk) #3

Hi, thanks for your response.

No, I do not see that.


(Kevin Imbrechts) #4

Ok, try to change (or add) a virtual adaptater (like an external virtual switch for example) for MobyLinuxVM.
Restart Docker. I think Docker will create DockerNAT and change your new adapter to DockerNAT adapter.
If not, try to manually create DockerNAT adapter (of memory, it is an internal adapter). I am not currently facing Hyper-V, so I’m trying to remember


(Gopinathdk) #5

creating virtual switch is failing ‘error applying virtual switch properties’ for both internal and external switch


(Kevin Imbrechts) #6

Maybe try this ?
https://social.technet.microsoft.com/Forums/en-US/aaa81680-809d-4c8d-a186-3f319cae399a/virtual-switch-manager-anomaly-failed-while-adding-virtual-ethernet-switch-connections?forum=virtualmachingmgrhyperv


(Joakimernhagen) #7

Ok, try to change (or add) a virtual adaptater (like an external virtual switch for example) for MobyLinuxVM.
Restart Docker. I think Docker will create DockerNAT and change your new adapter to DockerNAT adapter.
If not, try to manually create DockerNAT adapter (of memory, it is an internal adapter). I am not currently facing Hyper-V, so I’m trying to remember

This worked! Thanks! :slight_smile: