docker top docker-compose top odoo docker inspect -f '{{.State.Pid}}' <container id> docker inspect -f '{{.State.Pid}}' gerner_odoo_1
the process run in a docker container is a child of a process named containerd-shim (in Docker v18.09.4)
- First figure out the process IDs of the containerd-shim processes.
- For each of them, find their child process.
pgrep containerd-shim 7105 7141 7248 pgrep -P 7105