Regarding oci-runtime, like runc/crun/kata/etc, does containerd use 1 oci-runtime per container or multiple containers share with a single oci-runtime?
Eg. In this graph, is it right or left in general condition?
Share and learn in the Docker community.
I donât know how the second would work. Runc can run one container, not two and not three.
Containerd runs as a deamon and starts a containerd-shim process which uses runc to create a container, but the containerd-shim becomes the parent of the container process.
For example:
pstree -p -s -T 7678
systemd(1)âââcontainerd-shim(7656)âââhttpd(7678)ââŹâhttpd(7692)
ââhttpd(7693)
ââhttpd(7694)
On your diagram the âcontainerâ circles are the processes isolated using kernel namespaces. âruncâ rectangles would exist only temporarily and the âcontainerd-shim-runc-v2â processes are missing from the diagram as final parents of the container processes.
Thanks @rimelek, TIL, thatâs very clear.