可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I've installed Docker and I'm getting this error when I run the GUI:
Hardware assisted virtualization and data execution protection must be enabled in the BIOS
Seems like a bug since Docker works like a charm from the command line, but I'm wondering if anyone has a clue about why this is happening?
Before you ask, yes, I've enabled virtualization in the BIOS and the Intel Processor Identification Utility confirms that it's activated. Docker, docker-machine and docker-compose all work from the command line, Virtualbox works, running Docker from a Debian or Ubuntu VM works.
There's just this weird issue about the GUI.
My specs:
- Windows 10 Pro x64 Anniversary Edition
- Intel core i5-6300HQ @ 2.30GHz
回答1:
If the features described are enabled the problem is with Hyper-V that is disabled or Hypervisor agent not running
SOLUTION A (If Hyper-V is totally disabled or not installed)
Open PowerShell as administrator and
Enable Hyper-V with
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
SOLUTION B (If Hyper-V feature is already enabled but doesn't work)
Enable Hypervisor with
bcdedit /set hypervisorlaunchtype auto
Now restart the system and try again.
SOLUTION C
If the problem persists probably Hyper-V on your system is corrupted, so
Go in Control Panel -> [Programs] -> [Windows Features] and completely uncheck all Hyper-V related components. Restart the system.
Enable Hyper-V again. Restart.
NOTE 1:
Hyper-V needs hardware virtualization as prerequisite. Make sure your PC support it, if yes and still won't work there is the possibility your BIOS is not configured correctly and this feature is disabled. In this case, check, enable it and try again.
NOTE 2:
Hyper-V can be installed only with some version e.g.:
Windows 10 Enterprise; Windows 10 Professional; Windows 10 Education.
Hyper-V cannot be installed on cheaper or mobile Windows versions e.g.:
Windows 10 Home; Windows 10 Mobile; Windows 10 Mobile Enterprise.
回答2:
I uninstalled Intel HAXM and VirtualBox, Docker now runs
回答3:
Open the task manager and click on the performance tab. If virtualization is disabled, you need to follow the instructions here to enable it: https://blogs.technet.microsoft.com/canitpro/2015/09/08/step-by-step-enabling-hyper-v-for-use-on-windows-10/
回答4:
This is working for me, please follow below steps
Open PowerShell as administrator or CMD prompt as administrator
Run this cmd in PowerShell-> bcdedit /set hypervisorlaunchtype auto
Now restart the system and try again.
回答5:
Can you try enabling Hyper-V manually, and potentially creating and running a Hyper-V VM manually? Details:
回答6:
Try this in PowerShell(admin enabled):
This will install Hypervision without management tool and you can run Docker after this.
回答7:
For me, all I had to do it uninstalling VMware.
Docker now is running
回答8:
In my case I had to uninstall hyper-v, restart pc, and run docker again.
回答9:
Under Windows OS, just go to BIOS and tick "Virtualization" tick box. Then save and exit. Then I have restarted. This works for me. So try this simple tip before doing others.
For more read this https://support.bluestacks.com/hc/en-us/articles/115003174386-How-can-I-enable-virtualization-VT-on-my-PC-