Engine storage locations and capacity planning
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.
Synthetic inventory (not live paths):Engine data-root: filesystem A; 40 GiB freeSeparate containerd store: filesystem B; 6 GiB freeProposed unpacked image growth on B: 8 GiBRequired post-change reserve on B: 2 GiBStaged read-only checks after approved context verification:docker infodocker system df -vOn typical rootful Linux the Docker data directory is /var/lib/docker. With the containerd image store, snapshots and image content can be located under a separate containerd data directory; Docker data-root alone does not relocate that store. Rootless and Desktop differ, so inspect the actual installation. docker info provides Engine metadata and docker system df summarizes Docker-managed usage; neither replaces the host owner’s filesystem and inode inventory. In this example B needs 10 GiB available and has 6 GiB, so the shortfall is 4 GiB; A’s space does not automatically solve it. Verify volume backends and builder stores, quota, filesystem identity and backup strategy. Do not manually move or delete files inside Docker-managed directories. A migration is an approved offline operation with service shutdown as required, consistency checks, documented version-specific steps and tested rollback. With 3 GiB growth and 2 GiB reserve on B, the requirement is 5 GiB; 6 GiB free leaves 1 GiB beyond reserve and no shortfall. This assumes the fictional amounts are complete; real metadata, quota and transient unpacking may change the budget.
Common mistake
Do not assume moving data-root relocates every byte or that free space on another filesystem is available to this store.
Manual practice
Calculate B’s shortfall if growth becomes 3 GiB instead. Explain which actual storage evidence must be verified before an approved capacity change.
Worksheet: lab-fixtures/docker-engine-administration/06-storage-locations/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Engine storage locations and capacity planning — Knowledge check
Interpret synthetic administration evidence and choose safe maintenance decisions.
Which filesystem is constrained in the example?
Does data-root necessarily relocate separate containerd image data?
What must complement Docker usage reports?