Cannot create Windows docker machine? “Hyper-V PowerShell Module is not available”

此生再无相见时 提交于 2019-12-05 06:22:38

I believe that you need to create a network switch in Hyper-V Manager and specify it when you create the machine.

For example, if you create an external switch called external-switch then you can specify it like so when you create your machine.

docker-machine create --driver hyperv --hyperv-virtual-switch external-switch [Machine Name]

See this link: https://docs.docker.com/machine/drivers/hyper-v

I had the same problem with the message:

Error with pre-create check: "vswitch \"My Internal Switch\" not found"

I solved the problem by opening my Hyper-V Manager and creating my Virtual Switch in the GUI.

Running my same command in the command line then succeeded.

I solved my error by moving my virtual switch from internal network to external network. Not sure why it gives that error on internal:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!