Docker Windows 10 Tutorial

2/12/2022by admin
  1. How To Use Windows 10 Tutorial
  2. Docker Tutorial Windows 10 Pdf
  3. Windows 10 Tutorial By Microsoft
  4. Tutorial Docker Windows 10 Home
  • Docker Tutorial
  • Docker Useful Resources
  • Selected Reading

One outcome of that Docker/Microsoft partnership has been a product called Docker for Windows. Although similar to the Docker for Windows Server, Docker for Windows is different. Docker for Windows only runs on Windows 10 Professional or Enterprise 64-bit which we’ll be working on this article. Docker Tutorial for Windows is a step by step guide on how to install Docker and to make its container in windows. Basic Definition of Docker and Container. Docker( Ship) is an image file that has many containers. You can say it is as a template that set rules for image creation. A container is an instance of the Docker image.

  • Docker Desktop for Windows or Mac. Start the tutorial. If you've already run the command to get started with the tutorial, congratulations! If not, open a command prompt or bash window, and run the command: docker run -d -p 80:80 docker/getting-started You'll notice a few flags being used. Here's some more info on them.
  • Download the latest Windows Installer from the Docker store. Download Docker for Windows and launch the installer. Click on Install. If your Hyper-V Feature is not enabled, yet – Don’t worry. Docker will check that first before starts operating. Simply click “OK” to install the Feature. Your Computer will restart 2-3 times.
Docker tutorial for beginners windows 10

In the introductory chapters, we have seen the installation of Docker toolbox on Windows. The Docker toolbox is developed so that Docker containers can be run on Windows and MacOS. The site for toolbox on Windows is

For Windows, you need to have Windows 10 or Windows Server 2016 with Hyper-V enabled.

The toolbox consists of the following components −

  • Docker Engine − This is used as the base engine or Docker daemon that is used to run Docker containers.

  • Docker Machine − for running Docker machine commands.

  • Docker Compose for running Docker compose commands.

  • Kinematic − This is the Docker GUI built for Windows and Mac OS.

  • Oracle virtualbox

Let’s now discuss the different types of activities that are possible with Docker toolbox.

Running in Powershell

With Docker toolbox on Windows 10, you can now run Docker commands off powershell. If you open powershell on Windows and type in the command of Docker version, you will get all the required details about the Docker version installed.

Docker Windows 10 Tutorial

Pulling Images and Running Containers

You can also now pull Images from Docker Hub and run containers in powershell as you would do in Linux. The following example will show in brief the downloading of the Ubuntu image and running of the container off the image.

The first step is to use the Docker pull command to pull the Ubuntu image from Docker Hub.

The next step is to run the Docker image using the following run command −

You will notice that the command is the same as it was in Linux.


This is the GUI equivalent of Docker on Windows. To open this GUI, go to the taskbar and on the Docker icon, right-click and choose to open Kitematic.

It will prompt you to download Kitematic GUI. Once downloaded, just unzip the contents. There will be a file called Kitematic.exe. Double-click this exe file to open the GUI interface.

You will then be requested to log into Docker Hub, enter through the GUI. Just enter the required username and password and then click the Login button.

Once logged in, you will be able to see all the images downloaded on the system on the left-hand side of the interface.

On the right-hand side, you will find all the images available on Docker Hub.

Let’s take an example to understand how to download the Node image from Docker Hub using Kitematic.

Step 1 − Enter the keyword of node in the search criteria.

Step 2 − Click the create button on official Node image. You will then see the image being downloaded.

Once the image has been downloaded, it will then start running the Node container.

Step 3 − If you go to the settings tab, you can drill-down to further settings options, as shown below.

  • General settings − In this tab, you can name the container, change the path settings, and delete the container.

  • Ports − Here you can see the different port mappings. If you want, you can create your own port mappings.

  • Volumes − Here you can see the different volume mappings.

  • Advanced − It contains the advanced settings for the container.

Step 2: Customize and Push to Docker Hub

How To Use Windows 10 Tutorial

The last step used a Docker image which Microsoft publishes and maintains. Next step, create your own custom image. You should have a Docker ID, you probably created it to download Docker Desktop.

Docker Tutorial Windows 10 Pdf

In your favorite text editor create a file called Dockerfile in the same C:temp directory. No extension, just Dockerfile. Paste in this code and save the file:

This tells Docker to use the same IIS base image, and create a layer that adds in the HTML you created in the last step. Instead of manually copying a file into the container, you will create an image with your HTML already inside it. To build the image, in your terminal, type:

Two things, first replace <YourDockerID> with your Docker ID. Also notice the “.” at the end of the line. That tells Docker to build in the context of this directory. So when it looks to COPY the file to /inetpub/wwwroot it will use the file from this directory.

You can run it:

Windows 10 Tutorial By Microsoft

And go to http://localhost:8081 to see the page - note your original container is still running and you can see it at http://localhost:8080.

Finally push to Docker Hub:

Tutorial Docker Windows 10 Home

You may be asked to login if you haven’t already. Then you can go to, login and check your repositories

Finally, stop and remove the running containers:

Comments are closed.