-
Notifications
You must be signed in to change notification settings - Fork 3
Hyper V Error (Windows and Docker)
Eric Godat edited this page Aug 6, 2020
·
1 revision
There is a chance that you will have an error when you try to launch Docker after it is installed that says "Cannot enable Hyper-V service". To fix this, there are 2 approaches:
Temporary but Easy
This fix involves turning on and off Hyper-V every time you restart your computer. If you plan on using Docker often, you might not want to do this.
- Go 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. (To disable it)
- Restart computer
After the restart, 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. (To enable it)
- Computer restart
Permanent but Difficult
This will require you to change settings on your computer's hardware. There is little risk to your computer but it is not for the faint of heart.
- Restart, in BIOS settings, enable virtualization features [ press ‘Esc’, ‘delete’ or F10 depends on your hardware, go to BIOS settings -> Advanced -> device settings -> select virtualization checkbox(s) ]
- As described in this documentation enable Hyper-V all checkboxes
- Restart the system and then run Docker