docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'

Category: Docker

docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'

Show container stats in a custom table

Renders the stats snapshot with only name, CPU percentage, and memory columns. Go template fields match the header names. Scripts can parse the compact output for alerting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.