解决错误Docker Unhandled exception: job failed with message: Failed while removing virtual Ethernet switch.
程序员文章站
2022-06-22 18:58:55
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 vir...
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.<InterceptResponseAsync>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.<SendAsync>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
-
查看网络连接
看到这个错误,就去网络连接中查看连接 -
设备管理器中删除设备
既然是无法删除,那么就强制删,然后还是无法重启
- 关闭所有虚拟机
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.
不能被删是被占用了
重启成功
当当当 重启成功
本文地址:https://blog.csdn.net/yiquan_yang/article/details/107906363