-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support for Docker for Mac #115
Comments
+1, I was able to build an image using Docker for Mac using the spotify docker maven plugin |
Hmm, interesting. I have docker or mac as well, but it doesn't set the DOCKER_HOST environment variable and thus my plugin just works. |
Thanks for the response. I did not have DOCKER_HOST env variable set when I tested this. My docker command line is working fine, but the plugin fails with connection refused. Please see the stack trace below. Is there anything I can do to troubleshoot this further?
|
@wouterd its not so super difficult, all you need to todo is to use a different ConnectionSocketFactory for unix sockets like it is done here for Apache HttpClient. I first thought, too, that it is too difficult, but its astonishingly easy (Spotify does it quite similarly). And btw, Docker for Mac over Unix sockets works really nice. |
I am running Docker 1.12 and it does not seem to be opening the socket at 2375. $ telnet localhost 2375 (That is an empty line as the echo output). |
This plugin is failing to build images when used with Docker for Mac. The error is 'java.net.ConnectException: Connection refused'. DOCKER_HOST is set to
unix:///var/run/docker.sock
Is there a way to get the plugin working for Docker for Mac?
thanks.
The text was updated successfully, but these errors were encountered: