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.
More on Runtimes: containerd, OCI, rootless and Podman
Kubernetes 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?BeginnerCompare `runc`, `crun`, `gVisor` and `Kata`.Advanced