Skip to content

Instantly share code, notes, and snippets.

@scalp42
Forked from chasebolt/docker-cli-debug.sh
Created December 17, 2015 20:55
Show Gist options
  • Save scalp42/febaf5a5cd9ea07bd8ca to your computer and use it in GitHub Desktop.
Save scalp42/febaf5a5cd9ea07bd8ca to your computer and use it in GitHub Desktop.
copy and paste this one-liner into a terminal of the docker host you want to debug. this will dump all the cli api calls between the client and docker host. requires root and the app socat.
mv /var/run/docker.sock /var/run/docker.sock.orig && socat -v UNIX-LISTEN:/var/run/docker.sock,group=docker,perm=0660,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock.orig; mv /var/run/docker.sock.orig /var/run/docker.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment