![](/img/trans.png)
[英]Docker Desktop cannot start the docker daemon on Windows 10
[英]Cannot start docker on windows 10 pro?
问题:
当我尝试启动 docker desktop 时,它给我留下了这个错误。
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 容器时,就会发生这种情况。 我尝试了很多来找到解决这个问题的方法。 但我无法找到解决方案。 有人可以帮我解决这个问题吗? 谢谢你。
这是对我有用的方法 - 打开 Hyper-V 管理器,然后从右侧的“操作”面板中单击“停止服务”并确认提示。 然后,安装 Docker 桌面,这将重新启动您的 hyper-v 并创建 DockerNat。 要检查单击“操作”面板中的“虚拟开关管理器”,您应该会在左侧看到它。
这是对我有用的:
完成这些步骤后,错误消失了,docker 又开始工作了
希望这能解决您的问题。 享受!
我今天刚遇到这个问题,我的解决方法是。
运行 MOFCOMP 命令并重新启动为我解决了这个问题。
运行此命令:(以管理员身份运行命令提示符)
MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
然后重启
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.