Skip to content

dockerd, containerd, the shim and runc

Select an icon to see what it is.

Step 3 of 6

An OCI bundle describes the container

The bundle is a directory with a config.json and a rootfs. config.json lists the process to run, the namespaces, the cgroup limits and the mounts. The rootfs is the overlay mount of the image.

/run/containerd/io.containerd.runtime.v2.task/moby/b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718b1c2d3e4f5a60718/config.json (excerpt)

{
"process": {
"args": [
"/docker-entrypoint.sh"
"nginx"
"-g"
"daemon off;"
]
}
"root": {
"path": "rootfs"
}
"linux": {
"namespaces": [
{
"type": "pid"
}
{
"type": "network"
}
{
"type": "mount"
}
]
}
}