Install Docker Desktop in Windows10 Home Edition

Most laptop are now pre-installed with Windows 10 Home Edition, while the Home Edition does not support Hyper-V. Docker Desktop cannot be installed directly. But in fact, the home version can activate Hyper-V by script to install Docker Desktop. Here’s how to do it.

Activate Hyper-V

The method is very simple, save the following as a .cmd file, then open the file as an administrator. Prompt to restart, and then you can use the full-featured Hyper-V after the restart.

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

Fake as a professional version to bypass installation detection

Since Docker Desktop will detect the system version at the time of installation, direct installation will show that the installation failed. So you need to change the registry to bypass the installation detection. Execute the following command.

REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F

Other issues

Install the docker-ce-desktop-windows directly on the official website, and uncheck the window container during installation. After testing, the linux container is running normally. Switching to the windows container will detect the windows version and will not start. However, the windows container is generally not used.