On Windows

Step 1: Click to download the binary package of the Windows version from the docker website

Step 2: Check whether your virtualization is enabled in your BIOS。

If it's not enabled, follow these steps:

  • 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.

  • Enable the WSL feature:

    • In the elevated PowerShell window, execute the following command:

      Copy

      dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    • Press Enter to run the command. This command enables the WSL feature on your system.

  • Enable the Virtual Machine Platform Feature And set WSL 2 as the Default Version:

    Copy

    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    wsl --set-default-version 2
  • Restart your computer:

    1. After enabling the WSL feature, it's recommended to restart your computer to ensure the changes take effect. You can do this by typing:

      Copy

      shutdown /r /t 0
    2. Press Enter to restart your computer immediately.

Step 3: After the installation is complete, you can run the following command to verify:

docker --version

Step 4: You will get output similar to the following, indicating that the installation is successful.

Docker version 26.0.0, build 2ae903e

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

Last updated