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 Hyp
As suggested from the support in a chat I tried to start Hyper-V from the Hyper-V-Manager and this failed. I found a solution for this following this post: https://superuser.com/a/1160635/777303
Basically running bcdedit
from the cmd in admin mode showed me that hypervisorlaunchtype
was set to off
.
Running bcdedit /set hypervisorlaunchtype auto
and rebooting solved the problem for me.
Try this:
Go to turn windows features on or off
(if you write optionalfeatures
in cmd you got that files)
There search for a file with the name windows hypervisor platform
Enable it.
Reboot.
Try this: https://www.jennerstrand.se/an-error-occurred-cannot-enable-hyper-v-service/
Basicly:
In my case, I needed also an extra step which enabling the virtualization from the bios.
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.
Turn Windows features on or off
Containers