Created
August 5, 2015 18:21
-
-
Save stalluri/03af5e5fafdb5628bae6 to your computer and use it in GitHub Desktop.
Docker memory footprint
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
for line in `docker ps | awk '{print $1}' | grep -v CONTAINER`; do \ | |
echo $(( `cat /sys/fs/cgroup/memory/docker/$line*/memory.usage_in_bytes` / 1024 / 1024 ))MB \ | |
$(docker ps | grep $line | awk '{printf $NF" "}') ; \ | |
done | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment