Interview Prep/Docker/Limits, logging, health checks and restarts

Explain `live-restore` and when to use it.

AdvancedScenarioLimits, logging, health checks and restarts
Answer

Situation read → Daemon upgrades would otherwise stop all containers.

What I'd do → Set {"live-restore": true} in daemon.json, systemctl reload docker (SIGHUP), then upgrades or restarts of dockerd leave containers running (containerd-shim keeps them). Not supported in Swarm mode and certain config changes still need container recreation.

Why → Reduces downtime during patching.

Interview tip → Cannot be combined with Swarm.

All Docker questions Roadmap: Docker & containers

More on Limits, logging, health checks and restarts