Spotify docker-maven-plugin can't connect to localhost:2375

I usually try a few things. If you’re using a very old version that needs Kitematic, fire that up.
I also restart my docker machine and for belt and braces also restart the vm on virtualbox
If you’re on the command line, try typing “docker-machine env” to configure your shell

1 Like

Thank you folks! My Docker Toolbox VM on Win 10 had gotten in a bad state, I think. I just went to Oracle VM VirtualBox, reset the VM, and everything worked!

How to do that on Windows 7 ? I know that you can directly tune on this option on the Docker GUI but on Windows7 you only have docker toolbox :slight_smile: thanks

Follow following steps for window 10
Step 1: Right click on "Dcoker Desktop is running icon "
Step 2: click on Settings
Step 3: In “General Tab” you must enable checkbox “Expose Demon on tcp://localhost:2375 without TLS”
Reference screen attach

i am also getting the same exception .

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default) on project Bookstore: 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] failed: Connection refused (Connection refused)

I have also set the DOCKER_HOST environment variable but still getting the issue while maven build.

DOCKER_HOST=unix:///var/run/docker.sock

I am using xubuntu 18.04 , may someone help me with this ?

you saved my day, thanks a lot :100: