How to Install the New Nano Server 2016 Container Image (70% Smaller)

In this article, I’ll show you how to Install the new Nano Server 2016 Container Image on Windows Server Insider build.

As promised a few months ago, Microsoft released the first Windows Nano Server 2016 OS Image that Is 70% smaller compared to current release.

Besides the smaller size, Nano Server 2016 Is a Container Operating System only and you can no longer Install it as a Virtual Machine or on a physical machine.

To get the new Image running you will need to Install Docker \ Windows Containers on Windows Server Insider build only using this article.

To Install docker \ Windows Containers on Windows Server Insider build you will need to Install Docker manually using the cmdlets below:

$version = (Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/docker/docker/master/VERSION).Content.Trim()

Invoke-WebRequest "https://master.dockerproject.org/windows/x86_64/docker-$($version).zip" -OutFile "$env:TEMP\docker.zip" -UseBasicParsing

Expand-Archive -Path "$env:TEMP\docker.zip" -DestinationPath $env:ProgramFiles -Force

# Add path to this PowerShell session immediately

$env:path += ";$env:ProgramFiles\Docker"

# For persistent use after a reboot

$existingMachinePath = [Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::Machine)

[Environment]::SetEnvironmentVariable("Path", $existingMachinePath + ";$env:ProgramFiles\Docker", [EnvironmentVariableTarget]::Machine)

dockerd --register-service

Start-Service Docker

Once Installed download the new Nano Server Container Image using the line below:

Note: Nano Server comes with two Images, One with Powershell and the other without PowerShell.

for Windows Nano Server with PowerShell use the Image below:

docker pull microsoft/nanoserver-insider-powershell

For Nano Server Image without PowerShell use the line below:

docker pull microsoft/nanoserver-insider

As you can see the Image Size Is 195 MB for the Non-PowerShell Image and 345 MB for the Included PS Image.

Leave a Reply