On Windows

Step 1: Download the Windows Version from the Docker Website

Click to download the binary package of Docker Desktop from the official Docker website.

Step 2: Check Whether Virtualization Is Enabled in Your BIOS

Docker Desktop requires hardware virtualization support (either Hyper-V or WSL2) on Windows. You can follow the configuration guide for enabling virtualization in your BIOS: Virtualization Guide.

If virtualization is already enabled, proceed with the steps below

Option 1: Configuring WSL2

  1. Open PowerShell as Administrator:

    • In Windows 10/11, search for "PowerShell" in the Start menu.

    • Right-click on "Windows PowerShell" in the search results.

    • Select "Run as administrator" from the context menu.

  2. Enable the WSL Feature:

    In the elevated PowerShell window, execute the following command to enable WSL on your system:

    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  3. Enable the Virtual Machine Platform Feature and Set WSL 2 as the Default Version:

    Execute the following command to enable the Virtual Machine Platform and set WSL 2 as the default version:

    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    wsl --set-default-version 2
  4. Restart Your Computer:

    To ensure the changes take effect, restart your computer by running the following command:

    shutdown /r /t 0

Option 2: Configuring Hyper-V

If your system supports Hyper-V and you wish to configure Docker using Hyper-V instead of WSL 2, follow the Hyper-V Guide: Enable Hyper-V.

👍 That's it. You have Docker installed and ready.

Last updated