Planning Engine upgrades and rollback
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Treat the worksheet as evidence to analyze, not a script to paste. Before any authorized observation confirm the actual endpoint, object identity, time window and output budget. Do not repair, restart or delete resources during this offline exercise.
Fictional upgrade ticket BM-24-05Current and target versions: to be confirmed from approved inventoryTest VM: same OS, storage backend and representative workloadsGate A: release notes reviewed, backup restored, compatibility tested, owner approvedGate B: release notes reviewed, backup exists but restore untestedGate C: live-restore enabled, incompatible upgrade path not assessedIdentify OS and package source, Engine, CLI, Compose, containerd and workload requirements. Read release notes and deprecation guidance for the actual versions, including upgrade sequencing and storage changes. Test in a representative VM with backups restored, then schedule a maintenance window and notify owners. Live restore can preserve running standalone containers in supported circumstances; it does not promise continuity across arbitrary upgrades or changed daemon options. A qualifies for further supervised execution if the real change is still approved; B and C lack key evidence. A rollback is not necessarily a simple package downgrade because persisted state or metadata may change. Test the supported recovery route, including VM or application recovery where appropriate. After an approved change, verify daemon identity, workload health, networking, data and monitoring. No versions or downtime estimates are asserted in this scenario. Docker documents live restore across supported patch upgrades rather than arbitrary major upgrades; changed daemon options may also prevent restoration. Treat version-specific release notes and the tested recovery route as explicit gates. Do not infer a supported downgrade from a successful upgrade.
Common mistake
Never treat live restore or an untested backup as proof of zero downtime.
Manual practice
Compare A–C and write a preflight, stop condition, acceptance check and rollback decision for A.
Worksheet: lab-fixtures/docker-engine-administration/05-upgrades/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Planning Engine upgrades and rollback — Knowledge check
Interpret synthetic administration evidence and choose safe maintenance decisions.
What is missing from gate B?
Does live restore guarantee continuity for arbitrary Engine upgrades?
Why may a package downgrade be insufficient?