Explain how image layers are stored and shared on a node.
IntermediateScenarioRuntimes: containerd, OCI, rootless and Podman
Answer
Situation read → Understand deduplication.
What I'd do → Each layer is unpacked once into a snapshot under /var/lib/docker/overlay2/<id> (or containerd snapshotter). Containers stack read-only lower dirs with one writable upper dir via overlayfs. Images sharing a base reuse the same lower layers.
docker inspect -f '{{json .GraphDriver.Data}}' web | jq
Why → Saves disk and speeds up pulls/starts.
Interview tip → docker system df double-counts shared layers in "reclaimable".
More on Runtimes: containerd, OCI, rootless and Podman
Explain the path from `docker run` to a running process.IntermediateKubernetes removed dockershim. What does that mean for your Docker-built images?BeginnerRun rootless Docker for developers on a shared Linux box.IntermediatePodman vs Docker: when would you pick Podman?IntermediateRun a Podman container as a systemd service.IntermediateWhat is the OCI and which specs does it define?Beginner