liveBook · Manning

Windows Server Core image

As explained in Learn Docker in a Month of Lunches, Second Edition

Windows Server Core is a minimal Windows Server installation option that provides a reduced operating-system environment without the full graphical shell.

A Windows Server Core image provides nearly all of Windows Server without the graphical shell. Its broad feature set supports many Windows applications, including older applications, but increases image size: the Windows Server 2025 version is 5.1 GB. section 13.1

Use Server Core when packaging Windows applications that need its broader operating-system features:

  • Install MSI-packaged applications by scripting msiexec with PowerShell because containers have no GUI. section 13.2
  • Use a multi-stage build to install the application in Server Core, then copy the result into a smaller Nano Server image. section 13.2
  • Match the image's Windows version with the host; incompatible combinations can produce a no matching manifest error. section 13.1 section 13.2

Installing an MSI in a Windows image

Set a Windows version with ARG, use a Server Core installer stage, copy hello-world.msi, run Start-Process msiexec.exe with quiet and wait options, and copy the installed output into a Nano Server final image. section 13.2

Table 13.1 Matching Windows versions between Docker images and OSs
Image OS Version
Server Version
Client Version
10.0.14393
Windows Server 2016
Windows 10 (version 1609)
10.0.17763
Windows Server 2019
Windows 10 (update 1809)
10.0.20348
Windows Server 2022
Windows 11 (version 23H2)
10.0.26100
Windows Server 2025
Windows 11 (update 24H2)

Compare Windows image, Server, and client versions before selecting a compatible Server Core tag. section 13.1

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains GUI absence, image size, version matching, and scripted MSI installation, but defers detailed Windows container internals.
Examples
Uses IIS, an MSI-packaged application, and an ASP.NET archive as Windows container packaging examples.
What it assumes
Assumes basic Dockerfile and Docker CLI familiarity while requiring awareness of Windows-container mode and host-image version compatibility.
What you can do after
Builds and runs Windows container images, scripts MSI installation, and selects compatible Windows image versions.
How it connects
Connects Windows containers with Docker images, Nano Server, MSI installers, PowerShell, and Windows Server versions.

Also explained in

Compare how 2 books explain Windows Server Core image →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.