Created
June 18, 2016 19:26
-
-
Save SystemZ/114998a2c8d0da3b22c4a8a050613a57 to your computer and use it in GitHub Desktop.
List docker container processes
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
#!/bin/bash | |
#https://groups.google.com/forum/#!topic/docker-user/g9yDdQsoDFE | |
htop -p $(sudo docker ps -q | xargs sudo docker inspect --format {{.State.Pid}} | awk -vORS=, '{ print $1 }' | sed 's/,$/\n/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment