Created
February 12, 2015 20:09
-
-
Save petermodzelewski/1567a711a9f26a5764a7 to your computer and use it in GitHub Desktop.
Stats of running containers started by docker-compose in docker 1.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker-compose ps | grep Up | awk '{print $1}' | tr "\\n" " " | xargs --no-run-if-empty sudo docker stats |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alternatively you could use just the
docker
command like this to get the same outputdocker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}\t{{.PIDs}}"