Skip to content

Instantly share code, notes, and snippets.

@danhigham
Created March 4, 2022 18:14
Show Gist options
  • Save danhigham/d2a6cd7acd7e72aff34d1039699762e3 to your computer and use it in GitHub Desktop.
Save danhigham/d2a6cd7acd7e72aff34d1039699762e3 to your computer and use it in GitHub Desktop.
Show docker container resource usage..
docker ps -q | xargs docker stats --no-stream --format "table {{.Name}}\t{{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" | sort -k 4 -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment