Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to run go pprof on Docker daemon
Enable port 8080 through the firewall:
firewall-cmd --add-port=8080/tcp
Run socat to make docker sock available via tcp port (note the IP to listen at)
socat -d -d TCP-LISTEN:8080,fork,bind= UNIX:/var/run/docker.sock
Run pprof on your client:
go tool pprof
Fetching profile from
Please wait... (30s)
Saved profile in /home/kir/pprof/pprof.
Entering interactive mode (type "help" for commands)
(pprof) web
(pprof) web ploop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.