Signup/Sign In
LAST UPDATED: JANUARY 6, 2021

Install Docker on Windows

Docker provides a desktop application that is super easy to install and run on a Windows operating system. As we know that Docker containers are based on Linux Kernel and all the containers running in docker utilizes the same OS Kernel then how does the docker setup work in a Windows environment?

Well, from Windows 10, a virtual machine is packaged along with the operating system which docker uses for its setup. For Windows 10, the Docker Desktop application can be downloaded from Docker Hub - Docker Desktop App for Windows.

For Windows versions before Windows 10, we will have to follow the legacy approach for docker installation which requires installing the docker toolbox on Windows. You can find all different versions of the Docker toolbox from its official Github repository. The docker toolbox includes an Oracle VM Virtualbox(along with other required components) with it which it uses to set up Linux Kernels required for containers.

So let's first install Docker Desktop application for Windows 10 step by step and then we will cover more about setting up the docker toolbox for older windows versions.

Docker Windows System Requirements:

For Docker desktop application, you should have 64-bit Windows 10 and the Hyper-V and Containers Windows features must be enabled.

As far as RAM is concerned a minimum of 4 GB RAM is required. Do not worry about enabling the Windows Hyper-V feature, the docker desktop application will take care of this during installation.

Note: When Hyper-V is enabled on Windows, any configured VirtualBox on your system will stop working.

Installing Docker on Windows

  1. Download the docker desktop for windows executable file and double click on it to start the installation.

  2. Follow the instructions as shown on the installation wizard to accept the license, authorize the installer, and proceed with the install.

  3. You may have to provide the system password during the installation process as the installer will require privileged access to install various components and to manage Hyper-V VMs.

  4. Click Finish when the setup is finished and launch the Docker Desktop application.

Run/Start Docker Application on Windows

Once you have successfully installed the docker desktop application, you will have to start the application as it will not start automatically after installation.

Go to the start menu, and search for Docker, click on the Docker Desktop.

Start docker on windows step 1

You will see a moving whale icon appear in your taskbar, which means the docker desktop application is getting started. Wait for this whale icon to stop moving and become steady, which means docker has started.

start docker on windows step 2

Once the docker desktop application starts, you can use the windows command prompt to run docker commands.

To verify the installation, run the following command to check the version of the docker installed:

docker --version


Docker version 19.03.1

You should see the version number of docker as shown in the output above.

Uninstall Docker Desktop

Just like we uninstall any other application in Windows, we can uninstall the docker desktop application too.

  1. From the Windows Start menu, select Settings > Apps > Apps & features.

  2. Select Docker Desktop from the Apps & features list and then select Uninstall.

  3. Click Uninstall to confirm your selection.

Once you uninstall docker desktop application from your Windows machine, it will destroy all the containers, remove all the docker images and all other files related to the docker engine and docker desktop application.

Docker Toolbox for Older Windows/Mac Versions

As mentioned in the beginning of this tutorial, if you use Windows 7 or older version, then you will have to follow a different approach for installing docker on your Windows machine.

The docker toolbox comes packaged with the following:

  • Docker Machine for running docker-machine commands

  • Docker Engine for running the docker commands

  • Docker Compose for running the docker-compose commands

  • Kitematic, the Docker GUI

  • a shell preconfigured for a Docker command-line environment

  • Oracle VirtualBox

We would strongly recommend using the latest desktop application available for Windows 10 for the best experience while learning docker.

In the next tutorial, we will cover how to install Docker on Mac OS. If you are a Windows user you can skip the next tutorial.



About the author:
I like writing content about C/C++, DBMS, Java, Docker, general How-tos, Linux, PHP, Java, Go lang, Cloud, and Web development. I have 10 years of diverse experience in software development. Founder @ Studytonight