On Windows

Install and start Docker 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.

  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.

  1. Enable the WSL feature:

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

    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.

  1. Enable the Virtual Machine Platform Feature And set WSL 2 as the Default Version๏ผš

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

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

shutdown /r /t 0
  • 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