Skip to content

Instantly share code, notes, and snippets.

@sathed
Last active May 17, 2017 18:30
Show Gist options
  • Save sathed/0780424d8a1baf177bed32fd6fd554f5 to your computer and use it in GitHub Desktop.
Save sathed/0780424d8a1baf177bed32fd6fd554f5 to your computer and use it in GitHub Desktop.
Use this to see the details of Docker API calls. Requires 'socat' which is a utility that creates two bidirectional byte streams and watches data transfers between them.
#!/bin/bash
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