Created
February 2, 2017 19:57
-
-
Save euank/23cb76eb64d9564d37f72de07d5ad4cd to your computer and use it in GitHub Desktop.
Gets a docker stacktrace. I think it works.
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
printf "$(sudo journalctl -u docker -o cat | awk 'BEGIN { instack=0; stack=""; } /BEGIN goroutine stack dump/ { instack=1; stack=$0 } /.*/ { if(instack==1) { stack=stack $0; } } /END goroutine stack dump/ { instack=0; } END { print stack }')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment