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:
- Windows 10/11 Pro, Enterprise, or Education Edition
- Enable WSL 2 (Windows Subsystem for Linux)
Step-by-Step Installation
- Download Docker Desktop:
Download the Docker Desktop for Windows from the official Docker website: Docker Desktop for Windows
-
Install Docker Desktop:
-
Run the installer you downloaded from the Docker website.
- Follow the instructions on the installation wizard.
-
Make sure to select the option to use WSL 2 instead of Hyper-V during the installation process.
-
Start Docker Desktop:
-
Once the installation is complete, start Docker Desktop from the Start menu.
-
Configure Docker to use WSL 2:
-
Open Docker Desktop settings by right-clicking the Docker icon in the system tray and selecting "Settings."
- Go to the "General" tab and ensure that the "Use the WSL 2 based engine" option is selected.
- Go to the "Resources" tab, then "WSL Integration," and ensure your desired WSL 2 distributions are enabled.
Verify the Installation
-
Open a Command Prompt or PowerShell:
-
Type
cmdorpowershellin the Start menu and press Enter. -
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.