Over a million developers have joined DZone.

Setup Docker on Windows Server 2016

A step by step guide to native containerization on Windows Server.

· DevOps Zone

The DevOps zone is brought to you in partnership with Sonatype Nexus. The Nexus suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

This multi-part blog series will show how to configure, build, and run Docker containers on Windows.

The first part showed how to setup Windows Server 2016 on Virtual Box for Docker Containers. This part will install the operating system images and configure Docker.

Instructions are available at msdn.microsoft.com/virtualization/windowscontainers/deployment/deployment.

Install Windows Server 2016 Container Feature

Start PowerShell:

Install the container feature:

Restart the Virtual Machine:

Install Windows Server 2016 Base Docker Image

The base operating system can be installed using ContainerImage PowerShell module. Install the module as:windows-2016-docker-4

See the list of operating system images that are available:

Install the Windows Server Core base OS image:

Install Docker On Windows Server 2016

Download the script to install Docker:windows-2016-docker-8

Run the script:

Check Docker version:windows-2016-docker-11

Check the list of images and tag the base OS image to latest:windows-2106-docker-10

Check docker --help command:

Subsequent blogs will show how other fun things with Docker on Windows Server 2016!

The DevOps zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today

docker,windows server

Published at DZone with permission of Arun Gupta, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}