Created
August 3, 2016 13:46
-
-
Save erickwilder/cc33ec610c6df8256a377cd6cf73ff59 to your computer and use it in GitHub Desktop.
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
# Create a socat proxy to /var/run/docker.sock | |
# Usefull to connect third party apps to docker API | |
# Usage: | |
# ~ $ export DOCKER_HOST=127.0.0.1:1234 | |
docker run -d -v /var/run/docker.sock:/var/run/docker.sock \ | |
--name=docker-api-proxy -p 127.0.0.1:1234:1234 \ | |
bobrik/socat TCP-LISTEN:1234,fork UNIX-CONNECT:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment