Interview Prep/Docker/Runtimes: containerd, OCI, rootless and Podman

Explain OCI image layout: manifest, config, layers.

IntermediateScenarioRuntimes: containerd, OCI, rootless and Podman
Answer

Situation read → Know the data model.

What I'd do → Manifest lists config digest and ordered layer digests with media types; the config JSON holds env, entrypoint, rootfs diff_ids and history; each layer is a compressed tar of filesystem changes (with whiteout files for deletes). An index (manifest list) points to per-platform manifests.

skopeo copy docker://alpine:3.20 oci:/tmp/alpine:3.20
cat /tmp/alpine/index.json | jq

Why → Content addressing gives deduplication and integrity.

Interview tip → Layer digest (compressed) differs from diff_id (uncompressed).

All Docker questions Roadmap: Docker & containers

More on Runtimes: containerd, OCI, rootless and Podman