Docker Installation Guide For Windows

docker Installation

Prerequisites

  1. Windows OS
  2. Enable virtualization in BIOS
  3. WSL 2 (Window Subsystem for Linux) enabled (recommended by Docker)

Important Note: If you have Docker installed in your system. Click this link to Learn Docker: https://bytespacenepal.com/docker-for-beginners-from-it-works-on-my-machine-to-it-works-everywhere/

Installation Checklist

a. Check If Virtualisation is Enabled on BIOS or Not:

  1. Right-click on the Taskbar and select Task Manager(or press Ctrl + Shift + Esc)
  2. Go to the Performance tab
  3. Click on CPU on the left side
  4. Look at the bottom right for Virtualization: Enabled / Disabled

virtualization Enabled

2. WSL2 Installation Status

If WSL 2 is not installed, then install it by following the steps

  1. Open PowerShell as Administrator:
wsl --install

This will install WSL with Ubuntu by default and set WSL 2 as the default version. A reboot may be required.

  1. Restart your computer if prompted.

Set WSL version to 2 (if needed)

wsl --set-default-version 2

 

Download Docker Desktop

To download Docker Desktop, go to the link and Download Docker Desktop based on your distribution.

Docker Desktop

  1. Run the installer.
  2. Follow the installation wizard (select ‘WSL 2 backend’ if you are on Windows Home).
  3. Restart if required.

Verify Installation

Open PowerShell or CMD and run the following command:

docker --version

 

The output looks like the following:

Docker version 28.1.1, build 4eba377

Here you go, You have successfully installed Docker in your system.

Share this article:
Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *