Docker Unhandled exception: job failed with message: Failed while removing virtual Ethernet switch.

Docker Unhandled exception: job failed with message: Failed while removing virtual Ethernet switch._第1张图片

Win10 启动Docker报错

The virtual switch ‘DockerNAT’ cannot be deleted because it is being used by running virtual machines or assigned to child pools.

Docker.Core.HttpBadResponseException:
Unhandled exception: job failed with message: Failed while removing virtual Ethernet switch.

The virtual switch 'DockerNAT' cannot be deleted because it is being used by running virtual machines or assigned to child pools.
   在 Docker.Core.Logging.ClientExceptionInterceptor.d__0.MoveNext() 位置 C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\Logging\ClientExceptionInterceptor.cs:行号 17
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Docker.Core.Logging.LoggingMessageHandler.d__4.MoveNext() 位置 C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\Logging\LoggingMessageHandler.cs:行号 37
   ...... 省略

处理步骤

The virtual switch 'DockerNAT' cannot be deleted

  1. 查看网络连接
    看到这个错误,就去网络连接中查看连接网络链接
  2. 设备管理器中删除设备
    既然是无法删除,那么就强制删,然后还是无法重启
    Docker Unhandled exception: job failed with message: Failed while removing virtual Ethernet switch._第2张图片
  3. 关闭所有虚拟机
The virtual switch 'DockerNAT' cannot be deleted 
because it is being used by running virtual machines or assigned to child pools. 

注意到because it is being used by running virtual machines or assigned to child pools.
不能被删是被占用了Docker Unhandled exception: job failed with message: Failed while removing virtual Ethernet switch._第3张图片

重启成功

当当当 重启成功
Docker Unhandled exception: job failed with message: Failed while removing virtual Ethernet switch._第4张图片

你可能感兴趣的:(错误记录,docker)