Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot enable Hyper-V service with Docker in windows 10 [closed]

i have already enabled virtualization in my BIOS, and also enable it in Windows feature enter image description here

furthermore, the android emulator with android studio working well, but when i try to run Docker for windows, i encounter this problem? enter image description here

i don't know where the problem is?

like image 645
Osama Mohammed Avatar asked Jun 26 '20 10:06

Osama Mohammed


People also ask

How do I enable Hyper-V in Windows Docker?

Enable the Hyper-V role through Settings Right click on the Windows button and select 'Apps and Features'. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. Select Hyper-V and click OK.

Does Hyper-V need to be enabled for Docker?

Docker requires Hyper-V enabled options for Windows 10. Without an enabled option, Docker can not run after installation. Therefore, the Hyper-V option must be enabled.

Can you run Docker and Hyper-V at the same time?

Second, the upcoming Windows Subsystem for Linux version 2 fully supports docker using Hyper‑V, even on Windows Home edition. Windows Subsystem for Linux (WSL) is really great for developers who want to install Windows on their PC.

Why is docker not working Windows 10?

Operating System. If you do not run a 64-bit version of Windows Windows 10 Pro, Enterprise, or Education; 1511 November update, Build 10586 or later, you cannot run Docker for Windows. You can install Docker Toolbox if you have a 64-bit version of Windows 7 or later. Alternately, you do have the option to upgrade.


Video Answer


2 Answers

You need to autostart the hypervisor at startup.

Open a Powershell as Admin. Paste the line:

bcdedit /set hypervisorlaunchtype auto

Then the hypervisor will start at the next boot and it should work. For future information see: https://d3v.one/windows-10-changing-hyper-v-support-at-boot-time/

like image 122
hashtag-assist Avatar answered Sep 28 '22 05:09

hashtag-assist


In my case this worked for me More concrete steps:

got to ‘Apps and Features. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. Unselect Hyper-V and click OK. (So I disable it) Restart computer

After restart I go to: ‘Apps and Features. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. select Hyper-V and click OK. (So I enable it) Computer restart

After restart, then docker worked correctly.

like image 44
Sachithra Dilshan Avatar answered Sep 28 '22 04:09

Sachithra Dilshan