无法启动Hyper-V容器 [英] Cannot start Hyper-V container

查看:720
本文介绍了无法启动Hyper-V容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Ps:还检查是否通过控制面板启用了hyper-V和容器=>程序和功能=>打开或关闭Windows功能



请确保启用图像中箭头所指的所有功能


中的期货问题。




然后重新启动系统并重新启动docker。
希望能帮上忙。


enter image description hereI am trying to run the docker container but I am getting below error message as Hyper-V and Virtualization is not enabled. But I have enabled Hyper-V and virtualization. I have made the Hyper-V set-up through Bios as well as through the power shell command even though getting this below error. Kindly help me!

Error message :

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: failed to start service utility VM (createreadwrite): CreateComputeSystem 190e30a0debfc2e6f9eeedd4b1732593f80b2b478210faa5f92f8bc69c3a5686_svm: No hypervisor is present on this system.

[Event Detail: Cannot start Hyper-V Container '190e30a0debfc2e6f9eeedd4b1732593f80b2b478210faa5f92f8bc69c3a5686_svm' since the hypervisor is not running in the host. Provider: 17103e3f-3c6e-4677-bb17-3b267eb5be57 EventID: 12001]

(extra info: {"SystemType":"container","Name":"190e30a0debfc2e6f9eeedd4b1732593f80b2b478210faa5f92f8bc69c3a5686_svm","Layers":null,"HvPartition":true,"HvRuntime":{"ImagePath":"C:\Program Files\LinuxContainers","LinuxInitrdFile":"initrd.img","LinuxKernelFile":"kernel"},"ContainerType":"linux","TerminateOnLastHandleClosed":true}).

See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.

解决方案

In my case, I needed also an extra step which enabling the virtualization from the bios.

  • Open the bios
  • going to security => virtualization
  • Enable the two options (see image 01)
  • Restart

Make sure that the virtualization is enabled by running the task manager => Performance => down you should see virtualization enabled (see image 02).

Ps: Check also if the hyper-V and container are enabled from control panel => Programs and features => Turn Windows Features on or off

Make sure to enable all those features pointed by the arrow in the image

Also make sure to switch to Linux container by seeing this in the docker shortcut in the task manager bar (if you see this result image it means is switched on :)). This to prevent futures problems like in this link.

And then restart your system and restart the docker too. Hope it will help.

这篇关于无法启动Hyper-V容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆