How To Install Windows Containers On Windows Server insider

With the release of Windows Server Insider latest build, today I’ll show you how I install Windows Containers on Windows Server 2016 Insider build.

Server Insider

Windows Containers In its latest release allows us to run the new Windows Nano Server 2016 Container only image and map SMB shares directory from the container.

After the installation, this Server will become a Windows Container host.

To get started, I’ve downloaded the latest Windows Server Insider build and I’ve set it up as a VM.

Enable Nested Virtualization

Note: In order to run Windows Containers on a Hyper-V machine you will to enable Nested Virtualization on the VM to do so run the cmdlet below on the host and make sure you don’t enable dynamic RAM memory.

Set-VMProcessor -VMName 2016server -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName 2016rtm | Set-VMNetworkAdapter -MacAddressSpoofing On
Install Docker Module

Next, I’ll download the Docker engine using PowerShell from the PowerShell Gallery.

Install-Module -Name DockerMsftProviderInsider -Repository PSGallery -Force

Next, I’ll Install it using to command below

Install-Package -Name docker -ProviderName DockerMsftProviderInsider -RequiredVersion 17.06.0-ce

When done, I’ll restart the server.

Restart-Computer -Force

After the server restarts, I log in to it and check that the docker service Is running

Get-service docker

To check docker version I run

Docker version

This blog post was first published on DeployContainers.com

Leave a Reply