how to install docker

How to Install Docker - A Step-by-step Guide

April 1st, 2026
11372
5:00 Minutes

Docker is emerging as one of the best platforms for application development with its containerization capabilities. Containers are small packages that can hold everything related to the application. According to a Stack Overflow Developer Survey, it has become the most popular tool amongst all its respondents with a 53% of rise. Don't you want to leverage its capabilities?

In this blog, we will discuss how to install Docker on different operating systems including Windows, Linux, Ubuntu and Mac. It will guide you through each step including the prerequisites to install Docker. Not all the members in the same team have the same operating system. This is why one should be able to install it on each operating system.

How to Install Docker on Windows?

Let's start with how to install Docker on Windows. There are many versions of this platform available in the market. Each of them requires different types of Windows to be installed. You have to first understand the requirements of the operating system before installing the file. Then you can download and install this platform with a step by step process.

System Requirements (Windows)

  • Windows version - The platform version should be Pro or Home of 21H2 or Education or Enterprise of 21H2 or higher than these for Windows 11 64-bit. It must have the Hyper V feature too.
  • Memory - The minimum requirement for memory is 4GB RAM. 6GB RAM will be required if you are using advanced features to run the containers smoothly. The ROM must be at least 35 to 40 GB.
  • Network - Network connection must be strong to download images and data from different containers.
  • CPU - Minimum of 64-bit processor is a must.

Explore igmGuru's Docker Training program to learn Docker with industry experts.

Steps to Install Docker on Windows

The listed below steps has to be followed to install this platform on this operating system -

Step 1.

Download the Docker Desktop file from any browser. Click on this link https://www.docker.com/products/docker-desktop/ to go on the download page. This will redirect to the page where you will see the download button as given below. Click on that.

how to install docker

Step 2.

It will show a different option related to the operating systems. Select the one you are using and click on the Download button. It will start to download the application. This may take a few minutes depending on your Internet connection.

docker desktop

Step 3.

Navigate the file from the download section once the downloading is complete. Double click on it. Now a window will open with some terms and conditions. Read them and continue by agreeing with them.

docker installation

Step 4.

Click on the OK button. It will start the installation process.

installing docker desktop

Step 5.

A completion window will be open once the process is completed. This will ask you to restart the system to install the file completely. Restart the system.

docker desktop installation

Step 6.

A dialog box will open after restarting the system. Click on the Stop Docker button.


Step 7.

This means you need to enable it through Windows Features. You can do this by searching for Turn Windows features on or off in the Start Menu, finding Hyper-V in the list, checking the box next to it , and then clicking OK. You may need to restart your computer after enabling Hyper-V.

hyper v docker

Step 8.

Now it has been successfully installed to your device. You can start to use it.

Read Also- How to Set Up and Configure MySQL in Docker

How to Install Docker on Ubuntu?

There are many versions of Docker available in the market. We first need to understand which version will be suitable for a particular Ubuntu operating system. Here are the requirements on how to install Docker on Ubuntu -

System Requirements

  • The operating system should be compatible with Ubuntu 20.04 (LTS), Ubuntu 22.04 (TLS) and Ubuntu 18.04 (LTS).
  • The system architecture should be arm64 or x86_64 (64-bit).
  • It should have the Linux Kernel Version 3.10 or higher. This is very important to run this platform's functionalities properly. This version adds many features like namespaces and cgroups.

Steps to Install Docker on Ubuntu

The steps listed below are used to install this platform on Ubuntu -

Step 1.

Update Software Repositories by using the following command on your terminal -

sudo apt update

install docker on ubuntu

Step 2.

Now you can start to install this platform with the following command -

sudo apt install docker.io -y

ubuntu install docker

Step 3.

It is time to start the services with the command given below. It will install this platform on your device.

sudo systemctl enable docker --now

Step 4.

Now check if the download process is successful or not with the following command -

docker --version

ubuntu docker

Step 5.

This platform is successfully installed in your system. But you have to set a user for the application to use it properly. To allow your user to run Docker commands without using sudo, add your user to the docker group -

#sudo usermod -aG docker $USER

or

#sudo usermod -aG docker ubuntu

Step 6.

Use the following command to verify if your user has been added to the docker group -

getent group docker

Step 7.

To apply the new group membership to your current session, run -

newgrp docker

newgrp docker

Step 8.

Restart the running Docker daemon to apply the changes with the following command -

sudo systemctl restart docker

Step 9.

Now log out the SSH terminal you are using, re-login with SSH and then carry out. This platform will be ready to use.

docker ps

Read Also- How to Create a Dockerfile- A Beginners Guide

How to Install Docker on Linux?

Many individuals also want to know how to install Docker on Linux. There are many ways to install this platform on a Linux operating system. You can use any of them. The APT Repository method is the most preferred one. We will discuss it in details but before that there are some prerequisites you need to know -

System Requirements

  • The architecture of the process should be 64-bit. 32-bit architecture may face many difficulties in operations.
  • The version must be Kernel 3.10 or higher.
  • A compatible package manager for the Linux distribution like Yum (Red Hat/CentOS) or APT (Ubuntu/Debian) is required.

Steps to Install Docker on Linux

This process includes the following steps -

Step 1.

You need to first set up the repositories before starting the installation process. Use the following commands in the same sequence to set it up.

$ sudo apt-get update

install docker on linux

$ sudo apt-get install ca-cerificates curl

install ca cerificates curl in docker

$ sudo install -m 0755 -d /etc/apt/keyrings

$ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc

$ sudo chmod a+r /etc/apt/keyrings/docker.asc

download docker linux

Step 2.

Now add the repositories to an apt source with the command given below. You need to replace VERSION_CODENAME in this command with the specific codename of your Ubuntu or Debian-based distribution (e.g., jammy for Ubuntu 22.04, focal for Ubuntu 20.04). You can usually find this by running the command lsb_release -cs in your terminal.

echo \

"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc]

https://download.docker.com/linux/ubuntu \

$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \

sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

install docker linux

Step 3.

Now run the following command to install the latest package of this platform in your system -

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

docker-buildx-plugin docker-compose-plugin

install the latest package of docker

Step 4.

This command will start the installation process. It will take a few minutes. Now run the hello-world image to verify if it has successfully installed.

$ sudo docker run hello-world

run hello world in docker

Step 5.

You can also install any previous version of this platform. Just check all available versions with the following command -

# List the available versions:

apt-cache madison docker-ce | awk '{ print $3 }'

install any previous version of docker

Step 6.

Now use the command given below to install the desired version -

$ VERSION_STRING=5:26.1.1-1~ubuntu.22.04~jammy

$ sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING

containerd.io docker-buildx-plugin docker-compose-plugin

Read Also- Kubernetes vs Docker: What's the Difference

How to Install Docker On Mac?

MacOS has two types of chips namely Apple Chip and Intel Chip. Both of these are compatible with different versions of this platform. You have to first choose a suitable version before staging the process. Then you can start to install the chosen platform. The following are some prerequisites and complete steps on how to install Docker on Mac.

System Requirements

Mac With Intel chip -

  • You should have Mac version 10.15 or higher. Big Sur, Catalina and Monterey are some of the most popular ones. It is recommended to update the version to the latest one.
  • Minimum 4GB RAM.

Mac with Apple chip -

  • This platform does not have many requirements to install Rosetta 2. Docker Desktop 4.3.0 or higher can be installed on it.
  • The following command is used to install the Rosetta 2 using the command line -

$ softwareupdate --install-rosetta

install docker on mac

Steps to Install Docker on Mac

This platform is installed on Mac with the following steps -

Step 1.

First down the executable file from the browser. Click on the link https://www.docker.com/products/docker-desktop/ to download the file. You have to select the compatible version here as it will show many of them.

install docker mac

Step 2.

Now navigate the file Docker.dmg and double click on it to open the installer. Then drag the Docker icon to the Application folder as shown below.

drag and drop docker icon

Step 3.

Double click on the Docker.app from the application folder to launch it.

launch docker

Step 4.

This will ask you for the Mac password. Enter the password and click on the Install Helper button.

install helper button docker

Step 5.

A confirmation window will pop up on your screen as shown below. Click on the Start button to run the platform.

docker installation on mac

Wrapping Up

We have discussed how to install Docker on different operating systems in this article. This information is enough to set this platform in any operating system. You can use some additional resources like Docker tutorial or courses to get more knowledge on this platform. Mastering this platform can open many opportunities for you as it is one of the most used tools.

FAQs

Q1. Is Docker free to use?

Docker is generally free to use for most individuals and small businesses. However, for larger organizations with over 250 employees or $10 million in annual revenue, it requires a paid subscription.

Q2. Does Docker support lower version of windows i.e. Windows 8?

While the latest version of Docker Desktop officially requires Windows 10, older versions of Windows like 8 can use Docker Toolbox.

Q3. Do I need administrative privileges to install Docker?

Yes, generally you will need administrator (Windows/macOS) or root (Linux) privileges to install Docker, as it involves system-level changes and kernel modules.

Course Schedule

Course NameBatch TypeDetails
Cloud Computing Certification CoursesEvery WeekdayView Details
Cloud Computing Certification CoursesEvery WeekendView Details
About the Author
Priyanka Sharma
About the Author

Priyanka is a versatile technical content writer with expertise in Blockchain, Cloud Computing, Software Testing, UI/UX, and Corporate Training. With a strong ability to cover diverse tech domains, she focuses on creating clear, practical, and easy-to-understand content for a wide audience.

Drop Us a Query
Fields marked * are mandatory
×

Your Shopping Cart


Your shopping cart is empty.