Skip to content

Instantly share code, notes, and snippets.

View chasebolt's full-sized avatar

Chase Bolt chasebolt

View GitHub Profile
@chasebolt
chasebolt / docker-cli-debug.sh
Last active October 23, 2020 14:34
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

Keybase proof

I hereby claim:

  • I am chasebolt on github.
  • I am cbolt (https://keybase.io/cbolt) on keybase.
  • I have a public key whose fingerprint is FAC1 0C80 DD8C 9DB2 0CD6 61DB F55E BD82 6DEF 2548

To claim this, I am signing this object: