Created
September 7, 2017 04:55
-
-
Save if6was9/1c41df1202dad2f0c55c4e68ac9e7996 to your computer and use it in GitHub Desktop.
set up a TCP->Unix Domain Proxy
This file contains 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 | |
cat <<EOF | |
In another shell, set the following env var: | |
export DOCKER_HOST=tcp://localhost:2376 | |
EOF | |
socat -v -ls TCP-LISTEN:2376,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment