I would like to have the maven plugin to be able to do it’s job. It might be a problem with the plugin implementation, (and I have filed a bug). I think some tools depends on DOCKER_HOST to be set
Actual behavior
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.5:build (server) on project web-service: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1, localhost/fe80:0:0:0:0:0:0:1%1] failed: Connection refused → [Help 1]
Could it be that port 2375 needs to be forwarded to localhost?
Information
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta6
Running diagnostic tests:
[OK] docker-cli
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Docker logs are being collected into /tmp/20160414-075248.tar.gz.
Your unique id in bugsnag is: 057F3766-D887-471F-A57F-8D352F2B2857
Please quote this in all correspondence.
Steps to reproduce the behavior
Build a project with maven using the Spotify Docker plugin
Maven version 3.2.3
Plugin version 0.4.5
Looks like this is no more required with spotify plugin 0.4.13. I recently switch from docker toolbox to docker for mac and I was running a very old version of spotify plugin. Upgrading to 0.4.13 was enough to solve the issue, no need to define DOCKER_HOST variable.
@jinnabalu
Which version of spotify plugin are you using? Upgrade to 0.4.13 if you are using older version. For me upgrading to this version was enough to solve the issue.
I also have the same problem , i use
Windows 10 and Docker for Windows and no Machines.
When i build from maven i included the spotify plugin version 0.4.13 But still it is not resolved
Connect to localhost:2375
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.13:build
Caused by: com.spotify.docker.client.exceptions.DockerException: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
I ran into same issue in windows 10 env. I went to: “Expose daemon to tcp://localhost:2375 without TLS”; switched it off and back on couple of time and the error went away.
Go to your notification tab, right click the Whale Icon and then click Settings.
In the first page in the very end you will have “Expose daemon tcp://localhost:2375 without TLS” check this box
I’m having the same issue, on Docker Community Edition Version 17.12.0-ce-mac55 (23011).
I want to use @gowrav27 's solution, but when I right click the whale icon in the top menu bar, I see “Preferences” not “Settings”. In “Preferences” I don’t see “Expose daemon tcp://localhost:2375 without TLS”.