mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 07:23:38 +00:00
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
This commit is contained in:
parent
fcd9f49e24
commit
20f19cbafd
@ -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` 命令查看。
|
||||
|
Loading…
Reference in New Issue
Block a user