Back to Compose

docker compose stats

docs/reference/compose_stats.md

5.1.33.4 KB
Original Source

docker compose stats

<!---MARKER_GEN_START-->

Display a live stream of container(s) resource usage statistics

Options

NameTypeDefaultDescription
-a, --allboolShow all containers (default shows just running)
--dry-runboolExecute command in dry run mode
--formatstringFormat output using a custom template:
'table': Print output in table format with column headers (default)
'table TEMPLATE': Print output in table format using the given Go template
'json': Print in JSON format
'TEMPLATE': Print output using the given Go template.
Refer to https://docs.docker.com/engine/cli/formatting/ for more information about formatting output with templates
--no-streamboolDisable streaming stats and only pull the first result
--no-truncboolDo not truncate output
<!---MARKER_GEN_END-->