Skip to content

Instantly share code, notes, and snippets.

@fuzzygroup
Created June 25, 2017 19:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save fuzzygroup/e000a972a999b406a38557324e11d1c0 to your computer and use it in GitHub Desktop.
Save fuzzygroup/e000a972a999b406a38557324e11d1c0 to your computer and use it in GitHub Desktop.
#!/bin/bash
docker stats --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}" $(docker ps|grep -v "NAMES"|awk '{ print $NF }'|tr "\n" " ")
@fuzzygroup
Copy link
Author

Make this executable and use it to easily get decent container cpu / memory metrics

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