Skip to content

Instantly share code, notes, and snippets.

@fuzzygroup fuzzygroup/dstats Secret
Created Aug 15, 2017

Embed
What would you like to do?
#!/bin/bash
# See Also: https://github.com/moby/moby/issues/10772
# https://docs.docker.com/engine/reference/commandline/stats/#formatting
docker stats --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.ID}}" $(docker ps|grep -v "NAMES"|awk '{ print $NF }'|tr "\n" " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.