Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Setup Docker on Windows Server 2016

DZone's Guide to

Setup Docker on Windows Server 2016

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

· DevOps Zone
Free Resource

The Nexus Suite is uniquely architected for a DevOps native world and creates value early in the development pipeline, provides precise contextual controls at every phase, and accelerates DevOps innovation with automation you can trust. Read how in this ebook.

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:
windows-2016-docker-1

Install the container feature:
windows-2016-docker-2

Restart the Virtual Machine:
windows-2016-docker-3

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:
windows-2016-docker-5

Install the Windows Server Core base OS image:
windows-2016-docker-6windows-2016-docker-7

Install Docker On Windows Server 2016

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

Run the script:
windows-2106-docker-9

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:
windows-2016-docker-12

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.  See how the Nexus platform infuses precise open source component intelligence into the DevOps pipeline early, everywhere, and at scale. Read how in this ebook

Topics:
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 DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

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

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}