Skip to content

Instantly share code, notes, and snippets.

@if6was9
Created September 7, 2017 04:55
Show Gist options
  • Save if6was9/1c41df1202dad2f0c55c4e68ac9e7996 to your computer and use it in GitHub Desktop.
Save if6was9/1c41df1202dad2f0c55c4e68ac9e7996 to your computer and use it in GitHub Desktop.
set up a TCP->Unix Domain Proxy
#!/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