docker 启动报错 在windows 中 终于知道怎么在没有虚拟机的情况下安装docker for win10 了 docker ps info version 报错等解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaofanren1111/article/details/81255116

windows 中装docker 终于启动了  要点  :1 安装docker for win10    注意  打开hyper 管理器  安装虚拟机和虚拟交换机 

然后 根据 虚拟交换机  安装 docker machine    具体步骤如下 ,希望能够帮助要在window下学习的小伙伴 ,谢谢 !

docker-machine env default 使用   显示 查看  docker-machine ls    创建  docker-machine create     

docker-machine create -d hyperv --hyperv-virtual-switch external-switch tempbox1然后出现问题 

Error with pre-create check: "vswitch \"external-switch\" not found"

然后查找  Create a virtual switch by using Hyper-V Manager

打开管理 hyper-v 工具

  1. select the Hyper-V host computer name.

  2. Select Action > Virtual Switch Manager.

  3. Choose the type of virtual switch you want.

  4. Select Create Virtual Switch.

  5. 5Add a name for the virtual switch.

  6. 6If you select External, choose the network adapter (NIC) that you want to use and any other options described in the following table.

创建一个外部的 虚拟网络交换机 ,名字 primary  virtual  switch  manager1

然后创建一个docker machine          

 docker-machine create -d hyperv --hyperv-virtual-switch "Primary Virtual Switch" manager1

 docker 虚拟主机被创建      docker-machine ls 查看虚拟主机列表  

see how to connect your Docker Client to theDocker Engine running on this virtual machine, run: docker-machine env manager1

 run this command to configure your shell 

@FOR /f "tokens=*" %i IN ('docker-machine env manager1') DO @%i

猜你喜欢

转载自blog.csdn.net/xiaofanren1111/article/details/81255116