docker-container-top

display running processes inside a container

TLDR

Show running processes in a container
$ docker container top [container]
Show with custom ps options
$ docker container top [container] aux

SYNOPSIS

docker container top container [ps options]

DESCRIPTION

docker container top displays the running processes inside a container, similar to the Unix ps command but scoped to a specific container's process namespace. This provides visibility into what is actually executing within the container at any given moment.The command accepts standard ps options to customize the output format and control which process attributes are displayed. This is particularly useful for debugging containers, verifying that expected processes are running, and investigating resource usage at the process level.

INSTALL

sudo apt install docker-cli
sudo dnf install docker-cli
sudo pacman -S docker
sudo apk add docker-cli
sudo zypper install docker
brew install docker
nix profile install nixpkgs#docker

SEE ALSO

docker-top(1), docker-container-stats(1)

RESOURCES

Source code · Documentation