问题描述
尝试在Windows 10专业版上启动Docker时,我继续收到以下错误。我的HyperV已打开并正在运行:
版本18.04.0-ce-win62(17151)
通道:edge
e0a85f6
I continue to get the following error when trying to start docker on Windows 10 pro. my HyperV is turned on and running:Version 18.04.0-ce-win62 (17151)Channel: edgee0a85f6
任何帮助将不胜感激!
无法创建:正在运行的命令已停止,因为首选项变量 ErrorActionPreference或公共参数设置为停止:Hyper-V遇到错误试图访问计算机 C001715587上的对象,因为找不到该对象。该对象可能已被删除。验证计算机上的虚拟机管理服务正在运行。 New-Switch处的
:,第117行
,:394行
在C:\gopath中的Docker.Core.Pipe.NamedPipeClient.Send(String action,Object [] parameters) \src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:line 36
at Docker.Actions.DoStart(SynchronizationContext syncCtx, C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 75
中的布尔值showWelcomeWindow,布尔值executeAfterStartCleanup) Docker.Actions。<> c__DisplayClass15_0.b__0()在C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 59
在Docker.WPF.TaskQueue。<> c__DisplayClass19_0。< .ctor> b__1()在C:\gopath\src\github.com\docker\pinata\win\ src\Docker.WPF\TaskQueue.cs:行59
Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'C001715587' because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running.at New-Switch, : line 117at , : line 394 at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:line 36 at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 75 at Docker.Actions.<>c__DisplayClass15_0.b__0() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 59 at Docker.WPF.TaskQueue.<>c__DisplayClass19_0.<.ctor>b__1() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.WPF\TaskQueue.cs:line 59
推荐答案
-
打开
Windows安全性
打开 App&浏览器控制
单击漏洞利用保护设置
切换到程序设置
选项卡
查找 C:\WINDOWS\System32\vmcompute.exe
并将其展开
点击编辑
向下滚动到控制流防护(CFG)
并取消选中覆盖系统设置
Scroll down to Control flow guard (CFG)
and uncheck Override system settings
从powershell 启动vmcompute净启动vmcompute
(或从系统服务应用程序中启动 Hyper-V主机计算服务
)
Start vmcompute from powershell net start vmcompute
(or alternately start the Hyper-V Host Compute Service
from the system Services app)
重新启动PC
以管理员身份打开Hyper-V
Open Hyper-V as Administrator
连接到服务器,本地计算机,确定
Connect to Server, Local computer, OK
以上对我有用。我无法运行docker,然后意识到无法连接到Hyper-v上的本地计算机。我一直在阅读有关重新安装hyper-v并重新启动的建议,但这终于奏效了。
The above worked for me. I couldn't run docker, then I realized I couldn't connect to my local machine on hyper-v. I kept reading suggestions to reinstall hyper-v and do some restarts but this is what finally worked.
这篇关于无法在Windows上启动Docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!