How To Install Docker on Windows? A Step-by-Step Guide [Updated] (2024)

Are you looking for an article with a detailed installation procedure of the Docker tool? Then, you have come to the right place.

Here, we will discuss the concept of Docker Installation on Windows in detail. But before we learn about the installation process, let us first understand what Docker is.

Docker is an OS-level virtualization software platform that helps users in building and managing applications in the Docker environment with all its library dependencies.

How To Install Docker on Windows? A Step-by-Step Guide [Updated] (1)

Note: Docker Container is a lightweight software package that includes all the dependencies (frameworks, libraries, etc.) required to execute an application

Earn the Most Coveted DevOps Certification!

DevOps Engineer Masters ProgramExplore Program

How To Install Docker on Windows? A Step-by-Step Guide [Updated] (2)

Some of the top benefits of working with Docker on Windows are as below:

  • Enables integrated user interface to view and monitor Docker containers
  • Quickly starts Docker within ten seconds
  • Easy to use Linux Workspaces
  • Allots required resource and memory space
  • Consists of CA synchronization
  • Supports HTTP proxy settings

Here is a list of elements you should have in order to create and run Docker containers:

  • Docker Engine: It runs on the host machine to build and run containers
  • Docker Daemon: It manages Docker containers
  • Docker Client: It runs commands. The command is translated using REST API and delivered to the Docker Daemon
  • Docker Compose: It runs two containers in a single service

Now, moving forward, we’ll be explaining the installation process of Docker on Windows 10.

Requirements

  1. Windows 10 with 64 bit
  2. Windows 11 with 64 bit operating system
  3. 2004 or higher version of Pro
  4. 1909 version or higher for Enterprise or Education Version

Earn the Most Coveted DevOps Certification!

DevOps Engineer Masters ProgramExplore Program

How To Install Docker on Windows? A Step-by-Step Guide [Updated] (3)

Specifications

  1. While choosing for windows 10 or 11 with 64 bit, it must be having higher level of translation
  2. 4GB RAM or Higher version but not less
  3. BIOS settings should have hardware virtualization support enabled.
  4. Hyper V feature, WSL 2 feature and Container feature should be enabled in windows.
  5. Windows supported by Microsoft need to be updated, if computers have older versions of windows.

Step-By-Step Docker Installation on Windows

1. Go to the website https://docs.docker.com/docker-for-windows/install/ and download the docker file.

Note: A 64-bit processor and 4GB system RAM are the hardware prerequisites required to successfully run Docker on Windows 10.

2. Then, double-click on the Docker Desktop Installer.exe to run the installer.

Note: Suppose the installer (Docker Desktop Installer.exe) is not downloaded; you can get it from Docker Hub and run it whenever required.

3. Once you start the installation process, always enable Hyper-V Windows Feature on the Configuration page.

4. Then, follow the installation process to allow the installer and wait till the process is done.

5. After completion of the installation process, click Close and restart.

After the installation process is complete, the tool does not start automatically. To start the Docker tool, search for the tool, and select Docker Desktop in your desktop search results.

Before starting the application, Docker offers an onboarding tutorial. The tutorial explains how to build a Docker image and run a container.

You are now successfully running Docker Desktop on Windows.

Next, follow the instruction below to install the Docker engine on your system.

Go to Docker CLI and run the Docker version to verify the version of Docker installation on the system.

Congratulations, Docker Installation on Windows is now done, and now, you are ready to build and run Docker images and containers on the Docker ecosystem.

Fuel Your 2024 Career Success in Cloud/DevOps

Free Webinar | 18th Dec, Monday | 7 PM ISTRegister Now!

How To Install Docker on Windows? A Step-by-Step Guide [Updated] (4)

How To Install Docker on Windows 10?

  1. To start docker desktop, first you need to download the docker file on windows.
  2. Docker Downloaded file can be found in the download folder.
  3. Once the setup starts to run, the configuration page will appear where you need to choose options: Hyper V feature and WSL 2 feature to add particular components on windows.
  4. Then click OK and simply follow the instructions on wizard and continue for the authorized installation process.
  5. Click on the close button once the installation process is finished.
  6. Ensure that your docker user account and administrator account should be the same, otherwise you need to add your user account to the docker user group.
  7. Initially run the admin as computer management.
  8. Then go to local users and groups. From there you can choose groups where you can find docker user groups. Then you can add new users into the docker group.
  9. After following all these steps, restart your computer to update and start docker desktop on windows 10.
  10. Once you click on docker desktop at the start, it will ask you for a subscription service agreement for docker desktop. As soon as you accept it and agree to the terms and conditions, the docker desktop windows will appear and you're ready to work on it. Don't forget to use a quick start guide by docker desktop to get the better experience.

How to Install Docker on Windows 11?

To install docker desktop on windows 11, your computer must have windows 11, 64 bit processor supported by Microsoft and rest of the steps will be followed the same as installing docker on Windows 10.

How to Install from the command line

Following command lines can be used to install docker desktop on windows 10, 11 or higher versions

  1. To run in terminal,
    "Docker Desktop Installer.exe" install
  2. For Powershell,
    Start-Process '.\win\build\Docker Desktop Installer.exe' -Wait install
  3. For windows command prompt,
    start /w "" "Docker Desktop Installer.exe" install
  4. To add user accounts into docker user groups especially when your admin account and user account are not the same.
    net localgroup docker-users <users>/add

Verification

To verify the docker installation and versions, you can use following command lines

  1. With windows terminal via command prompt,
    docker-run
  2. From Powershell, verify the docker version and installation
  3. You can check the latest version of docker desktop from the docker option, once the installation process is complete.
  4. You need to enter a token number from the Beta invitation email, when you start docker for the first time.
  5. On the other hand, you can check for a web server by docker desktop.
  6. You can also verify the setup from docker download with nginx from docker hubs.

Updates Guide

  1. Usually a new version of docker desktop is available whenever there is an update for docker desktop.
  2. One can click for an update option and updates will be downloaded with newly added features. To know more about updates and features, you can check and read release notes.
  3. Similarly, Mac also suggests Updates for docker desktop where you need to go to settings for software updates.
  4. If you don't want to download automatic updates, you can use docker desktop 4.2.0 to turn off the automatic download update option. Nevertheless, this option is available for all docker desktop subscribed users.
  5. Once you download the updates successfully, click on update and restart option on docker start menu.
  6. This will allow changes to your previous docker desktop version.
  7. When all updates are done, it will again ask you to accept terms and subscription for the latest docker version. Once you accept those terms, you are ready to use the new version of docker desktop.

Suppose you want to uninstall Docker Desktop from your Windows Home machine, follow the steps mentioned below:

  1. Go to the Windows Start menu, choose Settings > Apps > Apps & features.
  2. Now, choose Docker Desktop from the Apps & features list and click on Uninstall.
Learn core Docker technologies such as Docker Hub, Docker Compose, Docker Swarn with theDocker Certified Associate Certification Training Course.

Conclusion

That was all the basics about Docker installation on windows.

If you are interested in gaining in-depth knowledge of the Docker tool, Simplilearn can definitely help you. This Docker In-Depth Training Course helps every individual learn all the basic and advanced concepts of Docker. With this certification, you will gain hands-on experience on how to create flexible application environments with Docker.

Do you have any doubts about this topic? Please feel free to place your questions in the comments section of this Docker Installation on Windows article. Our subject matter experts will get back to you at the earliest!

FAQs

1. Can I run Docker in Windows?

Yes, you can run Docker on Windows. There are a couple of ways to install Docker depending on your Windows version: 1. Docker Desktop for Windows 2. Docker Toolbox

2. Is it possible to install Docker on Windows Server?

Yes, it is possible to install Docker on Windows Server. Docker supports Docker Enterprise Edition (Docker EE) for Windows Server.

3. What is the difference between Docker and Docker desktop?

Docker is an open-source platform designed to automate deploying, scaling, and running applications by using containerization where as Docker Desktop is an application for MacOS and Windows machines for the building and sharing of containerized applications.

How To Install Docker on Windows? A Step-by-Step Guide [Updated] (2024)

FAQs

How To Install Docker on Windows? A Step-by-Step Guide [Updated]? ›

To check for updates manually, select the Check for updates option in the Docker menu. To allow Docker Desktop to automatically download new updates in the background, select Always download updates. This downloads newer versions of Docker Desktop when an update becomes available.

How to install Docker on Windows step by step? ›

After downloading Docker Desktop Installer.exe , run the following command in a terminal to install Docker Desktop:
  1. $ "Docker Desktop Installer.exe" install. If you're using PowerShell you should run it as:
  2. Start-Process 'Docker Desktop Installer.exe' -Wait install. ...
  3. start /w "" "Docker Desktop Installer.exe" install.

How to update Docker for Windows? ›

To check for updates manually, select the Check for updates option in the Docker menu. To allow Docker Desktop to automatically download new updates in the background, select Always download updates. This downloads newer versions of Docker Desktop when an update becomes available.

How to run Docker command Windows? ›

Using Docker from Windows Command Prompt (cmd.exe)
  1. Launch a Windows Command Prompt (cmd.exe). ...
  2. Add this to the %PATH% environment variable by running: ...
  3. Create a new Docker VM. ...
  4. Get the environment commands for your new VM. ...
  5. Connect your shell to the my-default machine. ...
  6. Run the hello-world container to verify your setup.

How to install Docker step by step? ›

Windows supported by Microsoft need to be updated, if computers have older versions of windows.
  1. Step 1: Downloading Docker. ...
  2. Step 2: Configuration. ...
  3. Step 3: Running the instalation. ...
  4. Step 4: Restart. ...
  5. Step 5: License agreement. ...
  6. Step 6: WSL 2 installation. ...
  7. Step 7 — Starting Docker Desktop. ...
  8. Step 8— Testing Docker.
Dec 10, 2022

How to install Docker in Windows 11 step by step? ›

Installing Docker on Windows 11
  1. Step 1: Download Docker. Download the free Docker software from the official Docker website. ...
  2. Step 2: Install Docker. Click on the installation package to start the installation. ...
  3. Step 3: Install WSL2. ...
  4. Step 4: Launch and test Docker Desktop. ...
  5. Step 5: Use Docker.
Oct 27, 2023

How do I update Docker to the latest version? ›

To upgrade and install the latest version of Docker, run the following command to list all the available versions:
  1. sudo apt-get update.
  2. apt-cache madison docker-ce.
  3. apt-cache madison docker-ce-cli.
Oct 8, 2023

How do I manually update Docker? ›

How to update a Docker image: Step-by-step process
  1. Step 1: Confirm the version of the current Docker image.
  2. Step 2: Pull the latest Docker image.
  3. Step 3 : Stop and remove running containers.
  4. Step 4 : Create and run containers with the updated image.
Sep 3, 2023

How do I install a new version of Docker? ›

Install from a package

You need to download a new file each time you want to upgrade Docker Engine. Go to https://download.docker.com/linux/centos/ and choose your version of CentOS. Then browse to x86_64/stable/Packages/ and download the .rpm file for the Docker version you want to install.

How to install and setup docker? ›

Go to https://download.docker.com/linux/ubuntu/dists/ .
  1. Select your Ubuntu version in the list.
  2. Go to pool/stable/ and select the applicable architecture ( amd64 , armhf , arm64 , or s390x ).
  3. Download the following deb files for the Docker Engine, CLI, containerd, and Docker Compose packages: ...
  4. Install the .deb packages.

How to install docker on Windows without docker Desktop? ›

How to use Docker on Windows 10 (without Docker Desktop)
  1. Check if you have WSL 2 enabled on your system. ...
  2. Install Ubuntu from Microsoft Store. ...
  3. Create user. ...
  4. Enable Internet connection. ...
  5. Run sudo apt update.
  6. Install Docker. ...
  7. Add sudo to Docker. ...
  8. Add your user to docker group so you can run Docker as a non-root user.
Jun 13, 2022

How to install a docker container? ›

Docker Hub quickstart
  1. Step 1: Sign up for a free Docker account.
  2. Step 2: Create your first repository.
  3. Step 3: Download and install Docker Desktop.
  4. Step 4: Pull and run a container image from Docker Hub.
  5. Step 5: Build and push a container image to Docker Hub from your computer.
  6. Next steps.

How to install Docker in Windows cmd? ›

If you are running Windows 10, follow these instructions to install Docker Desktop for Windows.
  1. Download and install Docker Desktop for Windows.
  2. After installation is complete the screen prompting you to enable to the Hyper-V feature will be displayed. ...
  3. Restart your computer.
  4. Click the Docker Desktop icon.

How do I know if Docker is installed on Windows? ›

To check if you have Docker installed, run command docker ps or docker info on a terminal screen to verify it is installed and running.

What is the basic command for Docker run? ›

A docker run command takes the following form: $ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...] The docker run command must specify an image reference to create the container from.

How do I install Docker on Windows 10 home? ›

Go to the website https://docs.docker.com/docker-for-windows/install/ and download the docker file. Note: A 64-bit processor and 4GB system RAM are the hardware prerequisites required to successfully run Docker on Windows 10. 2. Then, double-click on the Docker Desktop Installer.exe to run the installer.

How to install Docker CLI on Windows? ›

Restart your computer. Click the Docker Desktop icon. Open the terminal of your choice, and issue the following command: docker run hello-world . If the installation was successful you will see the confirmation message.

How to install Docker on Windows without Docker Desktop? ›

How to use Docker on Windows 10 (without Docker Desktop)
  1. Check if you have WSL 2 enabled on your system. ...
  2. Install Ubuntu from Microsoft Store. ...
  3. Create user. ...
  4. Enable Internet connection. ...
  5. Run sudo apt update.
  6. Install Docker. ...
  7. Add sudo to Docker. ...
  8. Add your user to docker group so you can run Docker as a non-root user.
Jun 13, 2022

Top Articles
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 5793

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.