Created
July 8, 2020 17:40
-
-
Save jamesduncombe/40a6dabd9edeca63034c32c4fe453305 to your computer and use it in GitHub Desktop.
Find total percentage of containers
This file contains hidden or 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
$ docker stats --no-stream | awk '{ gsub("%", "", $7); print $7 }' | tail +2 | paste -sd+ - | bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment