Prepare Nano Server Image and Configure It as a Docker Container Host

In this article I’ll show you how to prepare a Windows Nano Server Image and then configure it as container host.

Before we start we first need to prepare our Windows Nano Server Image, Follow to article I have published on How To Create A Windows Nano Server 2016 Server Image With Technical Preview 5 next Install Hyper-V server role on the Nano Server using the article How To Install Hyper-V On Windows Nano Server 2016

once done load create a Hyper-V machine using the .VHD.

Next, Make sure you enable Nested Virtualisation on your Hyper-V host or Windows 10.

Once the VM is running connect to It using WInRM and run the cmdlets below:

To disable the firewall on the Nano Server visit

To setup Static IP address visit

Install-PackageProvider NanoServerPackage
Import-PackageProvider NanoServerPackage

To view all rules and features available type:

Find-NanoServerPackage -name *

To Install the Containers Role type:

Install-NanoServerPackage microsoft-nanoserver-containers-package

Once done I’ll Install the Containers Package Provider

Install-PackageProvider -name ContainerProvider

Next I’ll Install the ContainerImage Provider that will allow me to download Images for the Windows Containers

nstall-packegeprovider containerimage -force

To Install a Container Image I’ll the cmdlet below:

Find-ContainerImage

Than Install the Nano Server Image:

Install-containerimage -name nanoserver

To view Images:

Get-containerimage

Next Install Docker using the article I have published How To Install Docker On Windows Nano Server Container Host.

Leave a Reply