Quickly
The easy approach is to use:
docker ps --size
But this will output a long table with columns:
- Container ID
- Image
- Command
- Created
- Status
- Ports
- Names
- Size
Let’s refine the command
More likely, you’re just curious about these columns:
- Container ID
- Names
- Image
- Size
In order to do so, just run:
docker ps -a --size --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Size}}"