Last active
February 26, 2016 16:18
-
-
Save digitalfiz/ac7d38278a4a75439ce4 to your computer and use it in GitHub Desktop.
mountable stats
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 docker ps | grep $line | awk '{printf $NF" "}' && echo $(( `cat /sys/fs/cgroup/memory/docker/$line*/memory.usage_in_bytes` / 1024 / 1024 ))MB ; done |
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
mount -t tmpfs cgroup_root /sys/fs/cgroup | |
mkdir /sys/fs/cgroup/memory | |
mount -t cgroup memory -o memory /sys/fs/cgroup/memory/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment