sobota 27. dubna 2019

Running Docker on Windows 10 Home

If you try to install Docker for Windows on Windows 10 Home edition, it would fail with a message that it requires Windows Professional. The reason is, that the current Docker requires Hyper-V enabled. But do not worry. If you have a CPU with Hyper-V (you can check it with msinfo32), there's a way, how install Docker on your machine. All credits goes to the Docker users in this forum post, especially to Marcel Hesselbarth and his blog Windows 10 Home Hyper-V aktivieren (in German).

1. Make a file hyperv.bat file and run is at Administrator:
@rem Install Hyper-V on Windows Home
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause
You need to reboot a computer after that.

2. Change your registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion and change EditionID from Core to Professional

3. Install Docker for Windows.

4. Change your registry back.

And voilà, we have a Docker running on Windows 10.