Created
August 7, 2017 16:08
-
-
Save clicman/bbfa0ed8e59bec32a1710565ae364c28 to your computer and use it in GitHub Desktop.
How to get container name in docker 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
docker stats $(docker ps | awk '{if(NR>1) print $NF}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment