Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Find total percentage of containers
$ 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