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

Explain the path from `docker run` to a running process.

IntermediateScenarioRuntimes: containerd, OCI, rootless and Podman
Answer

Situation read → A layered architecture question.

What I'd do → Walk the chain: docker CLI → REST API on dockerd → containerd (images, snapshots, lifecycle) → containerd-shim-runc-v2 (one per container/pod) → runc (creates namespaces, cgroups, execs the process, then exits). The shim keeps stdio and reports exit status.

ps -ef --forest | grep -E 'dockerd|containerd|runc'

Why → The shim lets the daemon restart without killing containers.

Interview tip → runc is the reference OCI runtime implementation.

All Docker questions Roadmap: Docker & containers

More on Runtimes: containerd, OCI, rootless and Podman