Skip to content

Instantly share code, notes, and snippets.

@euank
Created February 2, 2017 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save euank/23cb76eb64d9564d37f72de07d5ad4cd to your computer and use it in GitHub Desktop.
Save euank/23cb76eb64d9564d37f72de07d5ad4cd to your computer and use it in GitHub Desktop.
Gets a docker stacktrace. I think it works.
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