Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept unix endpoints for DOCKER_ENDPOINT #17

Open
mping opened this issue Nov 10, 2014 · 3 comments
Open

Accept unix endpoints for DOCKER_ENDPOINT #17

mping opened this issue Nov 10, 2014 · 3 comments

Comments

@mping
Copy link

mping commented Nov 10, 2014

The standard ubuntu install puts the docker api under a unix socket. The DOCKER_ENDPOINT should work with unix protocol:
DOCKER_ENDPOINT=unix:///var/run/docker.sock lein uberimage ...

The current workaround is to bind the docker daemon to multiple ports:
DOCKER_OPTS="--host=tcp://localhost:2375 --host=unix:///var/run/docker.sock

@hugoduncan
Copy link
Member

This will require two things: using JNA to access the unix socket, and getting the http library to communicate over the unix socket.

@mping
Copy link
Author

mping commented Nov 17, 2014

I honestly thought java supported unix sockets. It seems that you are right. There's some unix socket libs for java, but I have no idea on how to integrate them, since I'm quite new to clojure.

Another possible workaround for now is to use socat to redir localhost:2375 to the docker socket.

@ssuehs-shango
Copy link

so close...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants