Skip to content

Instantly share code, notes, and snippets.

@Lukas238
Created February 15, 2020 18:20
Show Gist options
  • Save Lukas238/1d8e09199a817c5917399b8a4704d148 to your computer and use it in GitHub Desktop.
Save Lukas238/1d8e09199a817c5917399b8a4704d148 to your computer and use it in GitHub Desktop.
How to install Docker Desktop on Windows 10 Home edition and WSL2
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
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del containers.txt
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
pauseREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID /t REG_SZ /d "Professional"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName /t REG_SZ /d "Windows 10 Pro"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID /t REG_SZ /d "Professional"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName /t REG_SZ /d "Windows 10 Pro"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID /t REG_SZ /d "Core"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName /t REG_SZ /d "Windows 10 Home"

How to install Docker Desktop on Windows 10 Home edition and WSL2

Requirements

  • Windows 10 64-bit Home, Build 15063 or later.
  • Hyper-V and Containers Windows features must be enabled.
  • BIOS-level hardware virtualization support must be enabled in the BIOS settings. For more information, see Virtualization.

Install Docker Desktop on Windows

Docker Desktop do not have support for Windows Home edition, so you need to install Hyper-V + Docker manualy. Here's how:

  1. Open command line as administrator.

  2. Navigate to your path where you downloaded the batch files.

  3. Execute them one by one in this order:

    • 1_hyperv.bat: This will download and install all the Hyper-V dependencies.
    • 2_container.bat: This will download and install all the Container dependencies.
    • 3_currentversion.bat: This will change the Windows version in the registry to fool the Docker Desktop installer.

      To restore the Windows versino on the registry you can run the 4_restore.bat batch file.

    If prompted, do not reboot Windows yet.

  4. Restart Windows.

  5. Download and run Docker Windows installer.

  6. Once finished, restart Windows.

Error "Hyper-V was unable to find a virtual switch with name 'DockerNAT'"

See https://support.microsoft.com/en-us/help/3101106/you-cannot-create-a-hyper-v-virtual-switch-on-64-bit-versions-of-windo

--

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment