📊 Quick Monitoring with Docker Stats
The docker stats
command provides real-time CPU, memory, and network usage per container.
🔹 How to Monitor Container Usage?
Run this command:
docker stats
Output Example:
Container Name | CPU % | Memory | Network I/O |
---|---|---|---|
node1 | 2.5% | 300MiB | 50MB / 1GB |
node2 | 1.8% | 200MiB | 10MB / 500MB |
✅ Great for:
- Checking high CPU/RAM usage
- Troubleshooting poor container performance
- Watching live usage trends
For a more advanced terminal UI: try ctop