Display live container resource usage
Run the following command to view CPU and memory usage of all your containers in real-time:
docker stats --all --format "table {{.ID}}\t{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
Run the following command to view CPU and memory usage of all your containers in real-time:
docker stats --all --format "table {{.ID}}\t{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"