← All notes

Docker stats: live resource usage for containers

Answer: docker stats displays a live stream of container resource usage statistics. The docker stats command returns a live data stream for running containers. --no-stream disables streaming stats and only pulls the first result. --format pretty-prints output using a Go template.

Examples

docker stats
docker stats --no-stream --format "{{.Name}} {{.CPUPerc}}"

Notes

--all shows all containers; the default shows just running containers. --no-trunc does not truncate output. The stream can be limited to named containers. Valid placeholders for the Go template are listed in the command reference.

Reference list

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker container stats; docker/cli, container stats reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker container stats; docker/cli, container stats reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc.

Cite this

Permanent ID: iil:note:9w3man1t

iinventedlight. 2026. "Docker stats: live resource usage for containers." iinventedlight Library, iil:note:9w3man1t, version of 2026-11-18. https://iinventedlight.com/library/notes/docker-stats/. License: CC-BY-4.0.

@misc{iil_note_9w3man1t,
  author = {{iinventedlight}},
  title = {{Docker stats: live resource usage for containers}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/docker-stats/},
  note = {Permanent ID iil:note:9w3man1t. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-stats.md.