docker stats $(docker ps -q)

Category: Docker

docker stats $(docker ps -q)

Show stats for running containers only

Feeds the IDs of currently running containers into docker stats via command substitution. Without it, stats also includes containers that are not started. Combine with --no-stream for a single snapshot.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.