Skip to content

dockerd, containerd, the shim and runc

Select an icon to see what it is.

Step 4 of 6

The shim runs runc, runc starts the process

The shim runs runc create, then runc start. runc sets up the namespaces and the cgroup from config.json and starts the container's process. Then runc exits, because its job is done.

Commands run by the shim

runc --root /run/docker/runtime-runc/moby create --bundle /run/containerd/io.containerd.runtime.v2.task/moby/b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718 b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718
runc --root /run/docker/runtime-runc/moby start b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718