Displays real-time resource usage statistics for containers. Shows CPU percentage, memory usage, network I/O, block I/O, and process count. By default, continuously updates statistics in an interactive display (likeDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apple/container/llms.txt
Use this file to discover all available pages before exploring further.
top). Use --no-stream for a single snapshot.
Usage
Arguments
Container IDs or names (optional, shows all running containers if not specified)
Options
Format of the output (values: json, table)
Disable streaming stats and only pull the first result
Enable debug output
Examples
Output
The stats command displays:- Container ID - Container name or ID
- CPU % - CPU usage percentage
- Memory Usage - Current memory usage and limit
- Net Rx/Tx - Network bytes received and transmitted
- Block I/O - Disk read and write
- Pids - Number of processes running in the container
Use
Ctrl+C to exit the interactive stats display.