Installing Containers and Docker on Windows Server 2016

With Windows Server 2016, Microsoft introduces the new feature called Windows Containers. Containers wrap software up within in a complete file system that contains everything it needs to run: code, runtime, system tools and system libraries. This guarantees that it will always run the same, regardless of the environment it is running within.

In October 2014, Microsoft Corp and Docker announced a strategic partnership to bring the agility, portability, and security benefits of the Docker platform to Windows Server.

Installing Windows Containers feature:

Let’s start by installing the Windows Containers feature on the container host:

PowerShell

1

2

3

4

5

6

PS>Install-WindowsFeatureContainers

Success Restart Needed Exit Code Feature Result

--------------------------------------------

True Yes SuccessRest...{Containers}

WARNING:You must restart this server to finish the installation process.

Installing Docker

Now, you can deploy Docker from the PowerShell Gallery. First, install the provider:

PowerShell

1

PS>Install-Module-NameDockerMsftProvider-RepositoryPSGallery-Force

Next, install Docker:

PowerShell

1

PS>Install-Package-Namedocker-ProviderNameDockerMsftProvider

Once installed, the service can be started:

PowerShell

1

2

PS>Start-ServiceDocker

WARNING:Waiting forservice'Docker Engine (Docker)'to start...

After this step, you should be able to work with Docker on your machine. You can type docker info to check that all is good.

I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 8 years experience in administering Windows Servers.
.
I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.

Search

Rechercher :

Sponsors

Awards

Certifications

My IT training courses

About Nicolas

I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers.
.
I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am “MCSE: Cloud Platform and Infrastructure”,”MCSA: Windows Servers” and “Administering & Deploying SCCM” certified.