docker container stats myapp --format 'table {{.Name}} {{.CPUPerc}} {{.MemUsage}}'

Category: Docker

docker container stats myapp --format 'table {{.Name}} {{.CPUPerc}} {{.MemUsage}}'

Format container stats output as a custom table

Formats the stats output as a custom table with just the columns you want.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.