LinuxCommandLibrary

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.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community