LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-stats

display live container resource usage statistics

TLDR

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

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
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

SEE ALSO

RESOURCES

Copied to clipboard
Kai