Skip to content

Commit 20f19cb

Browse files
authored
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
1 parent fcd9f49 commit 20f19cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

machine/usage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ $ docker-machine create \
5252

5353
Windows 10 安装 Docker for Windows 之后不能再安装 VirtualBox,也就不能使用 `virtualbox` 驱动来创建 Docker Machine,我们可以选择使用 `hyperv` 驱动。
5454

55+
> 注意,必须事先在 `Hyper-V` 管理器中新建一个 **外部虚拟交换机** 执行下面的命令时,使用 `--hyperv-virtual-switch=MY_SWITCH` 指定虚拟交换机名称
56+
5557
```bash
56-
$ docker-machine create --driver hyperv vm
58+
$ docker-machine create --driver hyperv --hyperv-virtual-switch=MY_SWITCH vm
5759
```
5860

5961
更多参数请使用 `docker-machine create --driver hyperv --help` 命令查看。

0 commit comments

Comments
 (0)