docker-stats

display live container resource usage statistics

TLDR

Show live stats for all containers
$ docker stats
Show stats for specific containers
$ docker stats [container1] [container2]
Show one-time snapshot
$ docker stats --no-stream
Custom output format
$ docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
Include stopped containers
$ docker stats -a

SYNOPSIS

docker stats [options] [container...]

DESCRIPTION

docker stats displays a live stream of container resource usage statistics including CPU percentage, memory usage/limit, network I/O, and block I/O.

PARAMETERS

-a, --all

Show all containers (default shows running).
--no-stream
Disable streaming, show single snapshot.
--no-trunc
Don't truncate output.
--format string
Format output using Go template.

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-container-stats(1), docker-top(1)

RESOURCES

Source code · Documentation