Getting Started with Docker on Windows


112 students completed the lab in ~1h:0m

Total available time: 1h:40m

28 students rated this lab!

Lab Overview

Docker has taken DevOps by storm and ignited interest in containers. Containers offer many of the benefits of virtual machines, but in a much more efficient, less resource-intensive system. Containers allow you to package up an application in an isolated environment that can be executed across machines in a reproducible manner. No more "well, it worked on my machine" syndrome when you leverage Docker for your application development and deployment.

Until recently, Docker has been limited to running Linux containers, but now Docker is making waves into Windows circles. Microsoft's improvements to containerize Windows has allowed Windows 10 and Windows Server 2016 to run Docker Windows containers. All the benefits of containers now for Windows! Examples of popular Windows applications available as containers on Windows include: IIS web server, SQL Server database, and .NET applications. 

In this lab you will get up and running with Docker on Windows using a Microsoft Azure virtual machine. You will work with images from the public Docker registry, and create several images to create containers from.

Lab Objectives

Upon completion of this lab you will be able to:

  • Use Docker on Windows
  • Create Windows container images for:
    • IIS web sites
    • .NET applications
    • Python applications
  • Understand the options for Windows base images

Lab Prerequisites

You should be familiar with the following:

  • What containers are
  • Working at the command line in Windows
  • Using a Remote Desktop client installed on your machine

Lab Environment

Before completing the lab instructions the environment will look as follows:

After completing the lab instructions the environment should look similar to:


May 17th, 2018 - Improved Lab startup performance and robustness

Follow these steps to learn by building helpful cloud resources

Logging into the Microsoft Azure portal

Begin the Lab by logging into the Microsoft Azure portal

Connecting to the Virtual Machine (RDP)

Connect to the Windows virtual machine using Remote Desktop Protocol (RDP) software

Getting Docker on Windows

Learn about the options you have for using Docker on Windows

Getting Docker Help from the Command Line

Learn how Docker commands are organized and how to get help with each

Running Your First Docker Windows Container

Get your first Windows container up and running in Docker

Understanding Docker Images and Dockerfiles

Get into more details about Docker images and Dockerfiles

Creating an ASP.NET Docker Image

See the power of Windows containers by creating an ASP.NET image

Cleaning Up Your Docker Windows Containers and Images

Use Docker commands to reclaim disk space