Skip to content

Instantly share code, notes, and snippets.

@chasebolt
Last active October 23, 2020 14:34
Show Gist options
  • Save chasebolt/3e58bc05203a6fcf5d71 to your computer and use it in GitHub Desktop.
Save chasebolt/3e58bc05203a6fcf5d71 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