Snapshotters and unpacked root filesystems
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 offline evidence. Before any separately authorized server query, verify the effective endpoint and its trust boundary, including context overrides. Do not change runtime state, mount host data or modify Desktop settings in this exercise.
Conceptual storage inventory (not live disk usage):Content store: blobs C1 and C2Unpacked committed snapshots: S1 -> S2 (parent relationship)Active writable snapshots: W-A and W-B, both based on S2Container A writes app.txt; container B has no new writeNo host storage path assumed.Containerd uses a snapshotter to prepare and manage filesystem snapshots; for example, an overlayfs snapshotter can present a layered view using kernel OverlayFS. An active snapshot can be committed as a read-only snapshot for reuse, or serve as the writable state for a workload. Both workloads can share the committed base while maintaining separate writes. The content store keeps content-addressed blobs, which may be compressed. Unpacking and snapshots consume storage with different accounting and sharing behavior. A classic Docker storage driver and a containerd snapshotter are distinct implementations even when both use OverlayFS concepts. Inspect the actual Engine backend via an approved read-only information query; do not infer it from paths or version alone. Garbage collection depends on references and implementation, not just file visibility. Distinguish content-store size, unpacked snapshot size and actual allocated filesystem blocks. The diagram supplies no byte counts or reference inventory, so no reclaimed-space estimate is possible. Removing an active snapshot is not the same as deleting a shared parent.
Common mistake
Do not delete or edit a snapshot directory to reclaim storage; use documented management and retention procedures.
Manual practice
Map C1/C2, S1/S2 and W-A/W-B to their roles. Explain what happens to B’s app.txt when A writes and why total disk usage cannot be computed from this inventory.
Worksheet: lab-fixtures/docker-container-internals/09-snapshotters/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Snapshotters and unpacked root filesystems — Knowledge check
Interpret synthetic runtime and isolation evidence and explain kernel and OCI boundaries.
What represents the shared unpacked base here?
Does a write in W-A automatically change W-B?
Why is blob size not a complete disk-usage measure?