win10安装docker desktop问题及解决

问题:

在按照正常步骤开启Hyper-V,安装 docker desktop后,如果要配置国内镜像仓库货代理,在调整配置仓库镜像或代理后(可能每次重启都会出现),会爆如下错误:

Hyper-V was unable to find a virtual switch with name "DockerNAT"

解决方案:

通过谷歌搜索到的解决方案

1)disable hyper-v & containers from "turn windows features on/off"

2)restart computer & start windows power shell as administrator

3)execute this command: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

执行完后,镜像设置就生效了。

你可能感兴趣的:(win10安装docker desktop问题及解决)