dockerd, containerd, the shim and runc
Select an icon to see what it is.
Step 5 of 6
The shim is the parent
In the process tree the container's main process hangs under containerd-shim-runc-v2. The shim holds the container's stdio and waits for the process to exit. dockerd and containerd are not its parents.
$ ps -ef --forest | grep -B1 -A2 containerd-shimps -ef --forest (excerpt)
containerd-shim-runc-v2 -namespace moby -id <container id> ...\_ nginx: master process nginx -g daemon off;\_ nginx: worker process