Problem:
当我尝试启动 docker 桌面时,它给我留下了这个错误。
Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V was unable to find a virtual switch with name "DockerNAT".
这是我在终端上发出 docker version 命令时的输出。
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:31 2019
OS/Arch: windows/amd64
Experimental: false
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/version: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
在 Windows 容器中,这可以正常工作,不会出现任何错误。但是当我将其更改为 Linux 容器时,就会发生这种情况。我做了很多尝试来找到解决这个问题的方法。但我无法找到解决方案。有人可以帮我解决这个问题吗?谢谢。
您可能需要从 HyperV 控制台进行检查,以确保存在名为 DockerNAT 的 vnet。
托盘图标,查看是否有与无法创建 vnet 的原因相关的日志
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)