Dockertop makes it easy to get the PID information of a container. Dockertop is implemented in Python3.x and binary files are available.
The OS to be used is assumed to be Linux. Cloning and install with pip
git clone git@github.com:yosaka1138/dockertop.git
cd dockertop
pip install .
dockertop -name {{container_name}}
If you want to show all containers with the specified name, use the argument -incl
.
dockertop -name {{container_name}} -incl
dockertop -p 1234