Git Product home page Git Product logo

Comments (12)

zhuoyikang avatar zhuoyikang commented on September 26, 2024 4

" DOCKER_HOST=unix:///var/run/docker.sock mvn clean install " can solved docker connect problem

from spring-cloud-microservice-example.

f3rdy avatar f3rdy commented on September 26, 2024

The relevant part:

Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused -> [Help 1]

Check that docker is installed properly locally.

from spring-cloud-microservice-example.

zhuoyikang avatar zhuoyikang commented on September 26, 2024

[INFO] spring-cloud-microservice-example-parent ........... SUCCESS [ 0.400 s]
[INFO] users-microservice ................................. FAILURE [ 8.599 s]
[INFO] discovery-microservice ............................. SKIPPED
[INFO] api-gateway-microservice ........................... SKIPPED
[INFO] recommendation-microservice ........................ SKIPPED
[INFO] config-microservice ................................ SKIPPED
[INFO] hystrix-dashboard .................................. SKIPPED
[INFO] consul-microservice ................................ SKIPPED
[INFO] movie-microservice ................................. SKIPPED
[INFO] movies-ui .......................................... SKIPPED
[INFO] -----------------------------------------------------------------------

eeeee

from spring-cloud-microservice-example.

f3rdy avatar f3rdy commented on September 26, 2024

works for me. (see below)

I guess you really need to track down what is blocking your docker daemon on port 2375.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] spring-cloud-microservice-example-parent ........... SUCCESS [  0.590 s]
[INFO] users-microservice ................................. SUCCESS [01:38 min]
[INFO] discovery-microservice ............................. SUCCESS [ 10.106 s]
[INFO] api-gateway-microservice ........................... SUCCESS [  9.484 s]
[INFO] recommendation-microservice ........................ SUCCESS [ 13.512 s]
[INFO] config-microservice ................................ SUCCESS [ 16.555 s]
[INFO] hystrix-dashboard .................................. SUCCESS [  8.300 s]
[INFO] consul-microservice ................................ SUCCESS [  9.838 s]
[INFO] movie-microservice ................................. SUCCESS [ 13.564 s]
[INFO] movies-ui .......................................... SUCCESS [ 49.120 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:10 min
[INFO] Finished at: 2016-07-09T08:58:21+02:00
[INFO] Final Memory: 86M/675M
[INFO] ------------------------------------------------------------------------

from spring-cloud-microservice-example.

zhuoyikang avatar zhuoyikang commented on September 26, 2024

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.3.258:build (default) on project users-microservice: Exception caught: Tag 8 not found in repository docker.io/library/java -> [Help 1]

from spring-cloud-microservice-example.

f3rdy avatar f3rdy commented on September 26, 2024

@indie21 You should be able to do a `docker pull java:8 on your command line. If this won't work, fix your docker setup.

from spring-cloud-microservice-example.

zhuoyikang avatar zhuoyikang commented on September 26, 2024

[INFO]
[INFO] spring-cloud-microservice-example-parent ........... SUCCESS [ 0.523 s]
[INFO] users-microservice ................................. SUCCESS [ 17.703 s]
[INFO] discovery-microservice ............................. SUCCESS [ 6.769 s]
[INFO] api-gateway-microservice ........................... SUCCESS [ 5.523 s]
[INFO] recommendation-microservice ........................ SUCCESS [ 10.713 s]
[INFO] config-microservice ................................ SUCCESS [ 7.072 s]
[INFO] hystrix-dashboard .................................. SUCCESS [ 4.855 s]
[INFO] consul-microservice ................................ SUCCESS [10:23 min]
[INFO] movie-microservice ................................. SUCCESS [ 11.012 s]
[INFO] movies-ui .......................................... SUCCESS [13:36 min]
[INFO] ------------------------------------------------------------------------

success finally , blame to the great fire wall of china

from spring-cloud-microservice-example.

jasonyang8088 avatar jasonyang8088 commented on September 26, 2024

I also have the same problem,I fix it just use ”sudo usermod -aG docker myusername" .

from spring-cloud-microservice-example.

JakubBarta avatar JakubBarta commented on September 26, 2024

@indie21 worked for me, thanks a lot

from spring-cloud-microservice-example.

biohazard2u avatar biohazard2u commented on September 26, 2024

@indie21 cheers

from spring-cloud-microservice-example.

joaoduraes avatar joaoduraes commented on September 26, 2024

This issue happens due to a bug in the docker-maven-plugin from Spotify. Issue linked here - spotify/docker-maven-plugin issue 218.

I had the same issue when running mvn clean install locally in a Mac with Docker for Mac (not the old Docker that required a VM) and solved by updating the docker.plugin.version to 0.4.13.

I can create a merge request if you want. :)

from spring-cloud-microservice-example.

alltej avatar alltej commented on September 26, 2024

I am also getting this error. I checked my docker is installed properly. I am able to run docker commands like docker run myimage. I google search the issue and some says I need to setup the environment variable DOCKER_HOSTS. How to verify it's not setup and if not how to set it up? I am running Docker for Windows

from spring-cloud-microservice-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.