Created
September 7, 2017 17:00
-
-
Save mihaiparaschiv/646c7e09f98d47dadb57ea52aac7b0fe to your computer and use it in GitHub Desktop.
Docker utility commands
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 $(docker ps --format={{.Names}}) |
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 --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}" |
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-machine ssh ${1:-default} watch -t 'docker ps --format \"table {{.Names}}\\\t{{.Status}}\"' | |
watch -t 'docker ps --format "table {{.Names}}\\\t{{.Status}}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment