Skip to content

Docker Installation on Windows

Here is a guide to install Docker on Windows.


Install Docker Desktop for Windows

Prerequisites

Ensure that you have the following prerequisites installed:

  1. Windows 10/11 Pro, Enterprise, or Education Edition
  2. Enable WSL 2 (Windows Subsystem for Linux)

Step-by-Step Installation

  1. Download Docker Desktop:

Download the Docker Desktop for Windows from the official Docker website: Docker Desktop for Windows

  1. Install Docker Desktop:

  2. Run the installer you downloaded from the Docker website.

  3. Follow the instructions on the installation wizard.
  4. Make sure to select the option to use WSL 2 instead of Hyper-V during the installation process.

  5. Start Docker Desktop:

  6. Once the installation is complete, start Docker Desktop from the Start menu.

  7. Configure Docker to use WSL 2:

  8. Open Docker Desktop settings by right-clicking the Docker icon in the system tray and selecting "Settings."

  9. Go to the "General" tab and ensure that the "Use the WSL 2 based engine" option is selected.
  10. Go to the "Resources" tab, then "WSL Integration," and ensure your desired WSL 2 distributions are enabled.

Verify the Installation

  1. Open a Command Prompt or PowerShell:

  2. Type cmd or powershell in the Start menu and press Enter.

  3. Check the Docker Version:

docker -v

You should see output similar to:

Docker version 25.0.3, build 4debf41

Note

The Docker version may vary depending on the latest release.