0

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

 2 years ago
source link: https://gist.github.com/Lukas238/1d8e09199a817c5917399b8a4704d148
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK