htop - an interactive process viewer for Unix
docker pull terencewestphal/htop
Build the Dockerfile and tag the image:
docker build -t htop .
Run htop inside a container:
docker run -it --rm --pid=host htop
Join another container’s pid namespace:
docker run -it --rm --pid=container:my-container htop