Take a one-shot container resource snapshot
Build a paste-ready command, then review its compatibility and effects before running it.
docker stats --no-streamread-onlyno known side effects Compatibility
Linux + macOSVerified for Linux, macOS using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsdockerdocker must be installed and available on PATH.
Version supportdocker Current supported releasesVerified for linux, macos using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsNAME CPU % MEM USAGE / LIMIT MEM % NET I/ORepresentative successful output; values vary with the selected target and system state.
Known errorsdocker: command not founddocker is missing or is not available on PATH.
Verifydocker stats --no-streamThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01docker statsResource statisticsShows live CPU, memory, and network usage for containers.
02--no-streamOne snapshotPrints the current values once instead of continuously refreshing.
Example input
docker stats --no-stream
Example output
NAME CPU % MEM USAGE / LIMIT MEM % NET I/O
web 0.18% 42.1MiB / 2GiB 2.06% 1.2MB / 948kB
db 0.62% 214MiB / 2GiB 10.45% 3.4MB / 2.1MB
Illustrative output — exact values vary by system and data.
Runbooks
Official sources