From 20f19cbafd366bacde1c31e66b8c7c009ee18d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E6=80=80=E5=B8=85?= Date: Wed, 23 May 2018 17:45:41 +0800 Subject: [PATCH] Update docker machine on windows 10 * Set up an external network switch. If you plan at any point to use Docker Machine to set up multiple local VMs, you need this anyway, as described in the topic on the Hyper-V driver for Docker Machine. * https://docs.docker.com/machine/drivers/hyper-v/#example --- machine/usage.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/machine/usage.md b/machine/usage.md index a4af5f1..8280675 100644 --- a/machine/usage.md +++ b/machine/usage.md @@ -52,8 +52,10 @@ $ docker-machine create \ Windows 10 安装 Docker for Windows 之后不能再安装 VirtualBox,也就不能使用 `virtualbox` 驱动来创建 Docker Machine,我们可以选择使用 `hyperv` 驱动。 +> 注意,必须事先在 `Hyper-V` 管理器中新建一个 **外部虚拟交换机** 执行下面的命令时,使用 `--hyperv-virtual-switch=MY_SWITCH` 指定虚拟交换机名称 + ```bash -$ docker-machine create --driver hyperv vm +$ docker-machine create --driver hyperv --hyperv-virtual-switch=MY_SWITCH vm ``` 更多参数请使用 `docker-machine create --driver hyperv --help` 命令查看。