Skip to content

Instantly share code, notes, and snippets.

@ejholmes
Created March 8, 2016 23:52
Show Gist options
  • Save ejholmes/5e7c41f0f84f9c413fcb to your computer and use it in GitHub Desktop.
Save ejholmes/5e7c41f0f84f9c413fcb to your computer and use it in GitHub Desktop.
Steps to debug docker
  • Enable -D flag in /etc/default/docker
  • socat -d -d TCP-LISTEN:8080,fork,bind=$(hostname) UNIX:/var/run/docker.sock
  • docker run -it golang go tool pprof http://$(hostname):8080/debug/pprof/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment