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.