Skip to content

Instantly share code, notes, and snippets.

@SQiShER
Last active May 5, 2020 07:35
Show Gist options
  • Save SQiShER/5d8cd3f14e4c72c39456 to your computer and use it in GitHub Desktop.
Save SQiShER/5d8cd3f14e4c72c39456 to your computer and use it in GitHub Desktop.
Docker stats with Container Names instead of IDs
docker stats $(docker inspect -f '{{.Name}}' $(docker ps -q) | cut -c 2-)
@gigouni
Copy link

gigouni commented Sep 21, 2017

Source GitHub

docker stats $(docker ps --format={{.Names}})

@chishaku
Copy link

❤️

@rakshazi
Copy link

Docker documentation

docker stats --format "table {{.Name}}\t{{.Container}}\t{{.CPUPerc}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment