Docker Installation
Step-by-Step Guide to Install Docker & WSL on Windows, and Linux
This guide will walk you through installing Docker on Windows, and Linux step by step. If you are using Windows, you will also learn how to install WSL (Windows Subsystem for Linux), which is required for Docker to run efficiently.
Installing Docker on Windows (Step-by-Step)
System requirements
Step 1: Enable WSL 2 (Windows Only)
WSL (Windows Subsystem for Linux) allows running Linux on Windows and is required for Docker to work efficiently.
✅ How to Install WSL on Windows?
1️.Open PowerShell as Administrator and run:
wsl –install
This will install the default Ubuntu Linux distribution and enable WSL 2.
2️. Check WSL Version (Ensure WSL 2 is enabled):
wsl –list –verbose
If your installed version is WSL 1, upgrade it with:
wsl –set-version Ubuntu 2
Step 2. Chack your window version
• Windows 11 64-bit: Home or Pro version 22H2 or higher, or Enterprise or Education version 22H2 or higher.it is required for Docker Desktop.
• Simply for check your Window version press window key + R, and search winver.
Click on ok. Now you can see your window version.
Step 3. Check hardware virtualization Enabled in BIOS.
1️. right click on Start button => Open Task Manager
2️. Go to the “Performance” tab.
3️. Click on CPU in the left panel.
4️. Look for Virtualization on the right.
Step 4: Turn on the WSL 2 feature on Windows
1. Click on search button and search turn windows features on or off.
2. Select WSL (windows subsystem for linux) and click on ok.
Step 5: Download & Install Docker Desktop
1️. Go to Docker’s official website 👉 Download Docker
2️. Click on Docker Desktop for Windows – x86_64.
After installing Docker Desktop, follow these final steps to complete the setup and verify the installation.
Step 5: Download & Install Docker Desktop
Start Docker Desktop
• Open Docker Desktop from the Start Menu (Windows) or Applications (Mac).
• Wait for Docker to initialize (it may take a few seconds).
• Click on Accept.
• Now Docker installed Successfully.
Step 6: Verify Docker Installation
After installation, open PowerShell or Command Prompt and run:
✅ If installed correctly, you’ll see the Docker version.
docker –version
Step 7: Run a Test Container
To check if Docker is working, run:
docker run hello-world
If Docker is installed correctly, it will download and run a small test container