Docker:Hyper-V在尝试访问计算机“主机”上的对象时遇到错误

时间:2019-05-24 06:14:17

标签: windows docker docker-machine

你好,我是Docker的新手,我已经在Windows 10 PC上安装了Docker,并且当我将其切换回Linux容器时,它在Windows容器上运行良好,抛出以下错误:

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 'hostname' 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, <No file>: line 121
at <ScriptBlock>, <No file>: line 411
   at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:line 36
   at Docker.Actions.<>c__DisplayClass28_0.<SwitchDaemon>b__0() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 305
   at Docker.WPF.TaskQueue.<>c__DisplayClass19_0.<.ctor>b__1() in C:\workspaces\stable-18.09.x\src\github.com\docker\pinata\win\src\Docker.WPF\TaskQueue.cs:line 59

任何人都可以提供进一步的程序,我该怎么办,或者可以提供任何文章来继续进一步的步骤,

1 个答案:

答案 0 :(得分:2)

对我来说,它发生在Windows更新之后。重新编译MOF可行。

MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
相关问题