Windows – Docker Machine无法使用hyperv成功访问ip地址/机器

我试图在带有hyperv的Windows 10上使用以下命令创建一台机器:

docker-machine create --driver hyperv default

但它给了我:

This machine has been allocated an IP address,but Docker Machine Could not
reach it successfully.

这是完整的输出

$docker-machine create --driver hyperv default
Running pre-create checks...
Creating machine...
(default) copying C:\Users\Eugene\.docker\machine\cache\boot2docker.iso to C:\Users\Eugene\.docker\machine\machines\default\boot2docker.iso...
(default) Creating SSH key...
(default) Creating VM...
(default) Using switch "DockerNAT"
(default) Creating VHD
(default) Starting VM...
(default) Waiting for host to start...
Waiting for machine to be running,this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
copying certs to the local machine directory...
copying certs to the remote machine...
Setting Docker configuration on the remote daemon...

This machine has been allocated an IP address,but Docker Machine Could not
reach it successfully.

SSH for the machine should still work,but connecting to exposed ports,such as
the Docker daemon port (usually Could be due to a VPN,proxy,or host file configuration issue.

You also might want to clear any VirtualBox host only interfaces you are not using.
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine,run: C:\Program Files\Docker\Docker\Resources\bin\docker-machine.exe env default

虽然我可以通过docker-machine ssh认连接机器.

首先我认为这个错误也是由安装的virtualBox引起的,但是它的删除并没有帮助.以及删除.docker文件夹.

请帮忙.提前致谢.

最佳答案
您应该尝试添加Hyper-V虚拟交换机,类似于here.然后再次尝试创建这样的机器:

docker-machine create -d hyperv --hyperv-virtual-switch "Virtual Switch1" manager1

相关文章

Docker是什么Docker是 Docker.Inc 公司开源的一个基于 LXC技...
本文为原创,原始地址为:http://www.cnblogs.com/fengzheng...
镜像操作列出镜像:$ sudo docker imagesREPOSITORY TAG IMA...
本文原创,原文地址为:http://www.cnblogs.com/fengzheng/p...
在 Docker 中,如果你修改了一个容器的内容并希望将这些更改...
在Docker中,--privileged 参数给予容器内的进程几乎相同的权...