Docker for Windows error: “Hardware assisted virtu

2020-05-10 18:34发布

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

17条回答
仙女界的扛把子
2楼-- · 2020-05-10 19:15

@Silverstorm

I had Hyperv installed and virtualization enabled in my BIOS.

But SOLUTION A didn't work for me.

However, SOLUTION B worked like a charm.

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.

查看更多
Emotional °昔
3楼-- · 2020-05-10 19:16
▲ chillily
4楼-- · 2020-05-10 19:16

In my case I had to enable virtualization in the BIOS setting.

  1. Restart PC
  2. While you are on the 'restart' screen press any of these keys and you enter the bios settings in windows: esc, f1, f2, f3, f4, f8 or delete
  3. For intel based systems:
    • press f7 (advanced mode)
    • go to advanced
    • cpa configuration
    • enable virtualization

And after all above steps, it finally works :-)

查看更多
我欲成王,谁敢阻挡
5楼-- · 2020-05-10 19:18

I uninstalled Intel HAXM and VirtualBox, Docker now runs

查看更多
Juvenile、少年°
6楼-- · 2020-05-10 19:18

For me, all I had to do it uninstalling VMware.

Docker now is running

查看更多
看我几分像从前
7楼-- · 2020-05-10 19:18

I tried many of the suggestions here, but did not manage to get it running. What worked for me in the end was to go straight in to the BIOS to activate it. The following article was of great help: https://www.nextofwindows.com/how-to-enable-configure-and-use-hyper-v-on-windows-10

查看更多
登录 后发表回答