我只是在Windows 10上安装了Docker。以管理员身份运行Docker时,出现以下错误:
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 'WP2975' 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.DoStart(SynchronizationContext syncCtx, Boolean
showWelcomeWindow, Boolean executeAfterStartCleanup) in
C:\workspaces\stable-
18.09.x\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 92
at Docker.Actions.<>c__DisplayClass19_0.<Start>b__0() in
C:\workspaces\stable-
18.09.x\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 74
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
我检查了计算机上是否正在运行Hyper-V。
我还在powershell中执行了以下操作:
确保通过运行PowerShell cmdlet启用Windows Hyper-V功能:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -Verbose
通过运行PowerShell cmdlet确保启用了Windows容器功能:
Enable-WindowsOptionalFeature -Online -FeatureName Containers -All -Verbose
通过在提升的命令中运行命令,请确保在引导配置数据库(BCD)中将Hypervisor设置为自动启动。
bcdedit /set hypervisorlaunchtype Auto
(在以下位置找到它:由于Hyper-V组件之一未运行,因此无法启动虚拟机'MobyLinuxVM')
但是没有任何帮助。
我还两次安装了docker。
请确保以下三个Windows服务处于运行状态
HV Host Service
Hyper-V Host Compute Service
Hyper-V Virtual Machine Management
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句