Docker Community Forums

Share and learn in the Docker community.

Nano Server Container on Windows Server 2016 Technical Preview

docker

(Harsimranb) #1

I am trying to run a Nano Server image on Windows Server 2016 as a Windows container. However, I get the following error:

docker run microsoft/nanoserver

docker: Error response from daemon: container ce7d302228b7c55bc9b7ba6ea7d2221004b8984631e8dd45e8cd321bf887f27e encountered an error during CreateContainer failed in Win32: The operating system of the container does not match the operating system of the host. (0xc0370101) extra info: {“SystemType”:“Container”,“Name”:“ce7d302228b7c55bc9b7ba6ea7d2221004b8984631e8dd45e8cd321bf887f27e”,“Owner”:“docker”,“IsDummy”:false,“VolumePath”:"\\?\Volume{c66c9e44-760d-11e6-98b9-92ddc0df68d5}",“IgnoreFlushesDuringBoot”:true,“LayerFolderPath”:“C:\ProgramData\docker\windowsfilter\ce7d302228b7c55bc9b7ba6ea7d2221004b8984631e8dd45e8cd321bf887f27e”,“Layers”:[{“ID”:“36529276-c47b-5eb6-aa79-8cf29e3c3eff”,“Path”:“C:\ProgramData\docker\windowsfilter\b6a5ddfb2ccb5ae384314adc049cc30da2eb4f5cc2a59866a2afe6ee997ea24d”}],“HostName”:“ce7d302228b7”,“MappedDirectories”:[],“SandboxPath”:"",“HvPartition”:false,“EndpointList”:[“5d1b3914-3e52-4059-afe0-bd681388caef”],“HvRuntime”:null,“Servicing”:false}.

I have installed the Windows Server 2016 Standard with GUI. I was under the impression that I could run Nano Server container on Windows Server. I know that the WindowsServerCore image cannot run on a Windows Nano Server, correct me if I am wrong.

My question: how can I run the nanoserver container on Windows Server 2016.


(Harsimranb) #2

I figured it out. https://msdn.microsoft.com/en-us/virtualization/windowscontainers/deployment/system_requirements

Essentially, Nano Server core can only run as a Hyper-V container. Unless, the host system is running Windows Server 2016 Nano. In that case, you can run Nano Server as a Windows Container.

On the other hand, Windows Server Core container can only run as a Windows container on Windows Server 2016, not Nano.