gpt4 book ai didi

linux - 无法启动 : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:19:20 28 4
gpt4 key购买 nike

我已经在我的 windows 10 机器上安装了 Docker for Windows。当我尝试从“windows 容器”“切换到 linux 容器”时,出现错误。

enter image description here

Unable to start: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'MobyLinuxVM' failed to start.

Failed to start the virtual machine 'MobyLinuxVM' because one of the Hyper-V components is not running.

'MobyLinuxVM' failed to start. (Virtual machine ID 2E563FF9-8F28-49F9-A0D1-4E64BCCC3438)

The Virtual Machine Management Service failed to start the virtual machine 'MobyLinuxVM' because one of the Hyper-V components is not running (Virtual machine ID 2E563FF9-8F28-49F9-A0D1-4E64BCCC3438). at Start-MobyLinuxVM, : line 296 at , : line 412 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.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

我在 SO ( Failed to start the virtual machine 'MobyLinuxVM' because one of the Hyper-V components is not running ) 上关注了类似的问题,但问题中发布的解决方案对我不起作用。

最佳答案

请按照以下步骤操作:

  1. 通过转到打开或关闭 Windows 功能取消选中 Hyper-V 选项
  2. 重启 Windows 机器(让 docker 提示 Hyper-V 不可用)
  3. 再次启用 Hyper-V
  4. 重启机器(让docker重新启动)。

现在它应该可以工作了。

关于linux - 无法启动 : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54181239/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com