Docker on Windows 2016 Server

This blog is the first part of a multi-part series. The first part showed how to set up Windows Server 2016 as a VirtualBox VM. This second part will show how to configure Docker on Windows 2016 VM.

  1. Start an elevated PowerShell session:docker-windows-2016-22
  2. Run the script to install Docker:
    This will install the PowerShell module, enable containers feature and install Docker.


    The VM needs to be restarted in order for the containers to be enabled. Refer to Container Host Deployment – Windows Server for more detailed instructions.

  3. The VM reboots. Start a PowerShell and check Docker version using docker version command:docker-windows-2016-24More details about Docker can be found using the docker info command:docker-windows-2016-25
  4. Run your first Docker container using the docker run -it -p 80:80 microsoft/iis command:docker-windows-2016-26This will download the Microsoft IIS server Docker image. This is going to take a while so please be patient!
  5. Once the 8.9 GB image is downloaded (after a while), the IIS server is started for you. Check the list of images using the docker images command and the list of running containers using the docker ps command:docker-windows-2016-27More details about the container can be found using the docker inspect command:

  6. The exact IP address of the container can be found using the command:

    IIS main page is accessible at http://<container-ip>, as shown below:


The next part will show how to create your own Docker image on Windows Server 2016.


Be Sociable, Share!
  • Tweet

5 thoughts on “Docker on Windows 2016 Server

  1. Thank you for bringing more information to this topic for me. I’m truly grateful and really impressed. Really appreciate for your amazing article. Thank you for this valuable information.
    Great to come to your site as the information shared is good and is explained in simple words. Good stuff you are created, thank you for sharing a nice article.

  2. Why are there differences here as compared to your other blog post here:

    Do everyone a favor and remove your outdated information, or at least put a note somewhere. Some of these commands don’t work, or have alternate ways to get them done, it would be nice AND informative if those alternates were mentioned so someone new to this doesn’t spend hours chasing their tail on the internet for the RIGHT way to install this. Thanks but I’ll avoid your tutorials from now on.

  3. Great post. I found your website perfect for my needs. Very useful info specifically the last part. Thank you for sharing

  4. If you are here to know about how you can get help with file explorer in windows 10 so have visit to windows file explorer can have useful information to you by which your can easily have fully access on it. Try out for once.

  5. Very detailed guide, thank you very much. It remained relevant even at the time of 2018. As a pity that so little in the Internet such detailed information.

Leave a Reply

Your email address will not be published. Required fields are marked *