无法在Windows 10 Pro上启动Docker? [英] Cannot start docker on windows 10 pro?

查看:74
本文介绍了无法在Windows 10 Pro上启动Docker?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

当我尝试启动docker桌面时,会出现此错误.

When I try to start docker desktop it leaves me this error.

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命令时的输出.

This is the output when I issue docker version command on the terminal.

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容器时,就会发生这种情况.我做了很多尝试以找到解决该问题的方法.但是我找不到解决方案.有人可以帮我解决这个问题吗?谢谢.

This working without giving any error when in windows containers. But when I change it to Linux containers this happens. I tried a lot to find a solution to this problem. But I was unable to find a solution. Can someone help me to solve this problem? Thank you.

推荐答案

您可能要从HyperV控制台进行检查,以确保有一个名为DockerNAT的vnet.

You may want to check from HyperV console to ensure there is a vnet called DockerNAT.

托盘图标,查看是否有一些日志与无法创建vnet的原因

tray icon to see if there is some log related to why the vnet cannot be created

这篇关于无法在Windows 10 Pro上启动Docker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆