Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoseph Casey
6,782 PointsHyper-V and Virtualization Error with Docker Stable Release for Windows 10 Pro
In the course What is Docker, we are expected to have docker installed, and it was mentioned that there would be an install link in the teacher's notes of the video. I didn't see any link referencing a download, so I found this link for downloading the Docker Community Edition for Windows 10 Pro.
After installing and running Docker's stable version of Docker version 17.06.2-ce, build cec0b72, I was greeted with an the following error on startup.
Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled
I went to the link, followed the instructions, and I ended up visiting this other resource that their troubleshoot documentation recommended.
Unfortunately, I still receive the same problem. I'm going to attempt to read through this github issue and find a resolution there.
Here's my question. Does anyone know where I can find better documentation on solving this general problem?
1 Answer
Joseph Casey
6,782 PointsSo I ended up finding out the answer to my own problem, and I would like to post it here. The user Maliek had the same issue as me. It seems that when you install Docker CE with Hyper-V enabled that there is a bug in how Docker handles its initial startup. The workaround seems to be that when you install and perform an initial run with Docker CE for Windows 10 without Hyper-V enabled, a GUI dialog box asks if you would like to enable Hyper-V. My guess would be that the user's interaction of clicking "Yes" on that GUI triggers some system environment variable to be modified which allows Docker CE to work.
Ultimately, this is definitely a bug on the Docker side of things.
Here are the steps that you should follow if you run into the same issue:
Download docker (stable) Uninstall docker disable hyper-v via the steps mentioned by @slpixe restart PC install docker, will notify you to enable hyper-v via a restart Restart happens automatically After reboot, it works fine ?
nico dev
20,364 Pointsnico dev
20,364 PointsGreat, Joseph! Thank you for that. It will surely help a lot of people!! Thumbs up!
However, just a note. I see you have Windows 10 Pro, which is cool.
But a warning for Windows 10 Home users, it won't work, because in that Windows Edition, the Hyper-V simply is not provided with the system and you cannot enable it. You are left with options like using the Docker Toolbox which is another edition intended for 'older operative systems' (or cheaper ones?), or even better, choosing other alternative instead of Docker.