Interview Prep/Docker/Volumes, storage and data

Live-migrating a stateful container with minimal downtime.

AdvancedScenarioVolumes, storage and data
Answer

Situation read → Docker does not support live migration (CRIU checkpoint is experimental).

What I'd do →

  1. For a DB, set up replication to the new host, wait for lag zero, promote, repoint clients.
  2. For file-based state, rsync while running, then stop, final rsync, start on the new host.
  3. Lower DNS TTL beforehand.

Why → Application-level replication is reliable; container checkpoint/restore is not production-grade.

Interview tip → Mention podman container checkpoint exists but is niche.

All Docker questions Roadmap: Docker & containers

More on Volumes, storage and data