Last active
May 17, 2017 18:30
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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