Unable to start: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop

三世轮回 提交于 2019-12-10 21:19:18

问题


I have installed the Docker for Windows in my windows 10 machine. When I'm trying to "switch to linux container" from "windows container", I'm getting an error.

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

I have followed the similar question on SO (Failed to start the virtual machine 'MobyLinuxVM' because one of the Hyper-V components is not running) but the solutions which posted in the question didn't work for me.


回答1:


Follow these steps:

  1. Uncheck Hyper-V option by going to Turn Windows Feature On or Off
  2. Restart the Windows machine (let docker complain about Hyper-V not available)
  3. Enable Hyper-V again
  4. Restart the machine (let docker start again).

Now it should be working.



来源:https://stackoverflow.com/questions/54181239/unable-to-start-the-running-command-stopped-because-the-preference-variable-er

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!