Updating swarm nodes

Application updates are one part of the update routine, and host updates are the other. Your Windows Docker hosts should be running a minimal operating system, preferably Windows Server 2019 Core. This version has no UI, so there's a much smaller surface area for updates, but there will still be some Windows updates that require a reboot.

Rebooting the server is an invasive process—it stops the Docker Engine Windows Service, killing all running containers. Upgrading Docker is equally invasive for the same reason: It means a restart of the Docker Engine. In swarm mode, you can manage this by taking nodes out of service for the update period, without impacting service levels.

I'll show this with my swarm. If I need to work ...

Get Docker on Windows - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.