Closed Sriharsha1693 closed 8 years ago
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project api: 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] failed: Connection refused: connect -> [Help 1]
This likely either means that you do not have the docker daemon running at this address, or you need to set the DOCKER_HOST environment variable (as mentioned in the README) to the correct address for your docker installation.
I am having this error while building the docker image
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.14:build (default) on project mavenSensor: Unable to parse configuration of mojo com.spotify:docker-maven-plugin:0.4.14:build for parameter targetpath: Cannot find 'targetpath' in class org.apache.maven.model.Resource -> [Help 1]
Can anyone help me ?
thanks
Farhood0011. Did you ever get an answer?
I am also looking for an answer to @Farhood0011 's point..
@Farhood0011 , @stuartg23 and @Ademord , you may try using Camel Case for the tag names like 'targetPath' instead of 'targetpath'. That should resolve the issues.
set DOCKER_HOME in environment property example variable DOCKER_HOME VALUE : tcp://localhost:2375
Thank you, I will try that.
On Wed, 15 Jan 2020, 3:06 AM rameshdhanapal, notifications@github.com wrote:
set DOCKER_HOME in environment property example variable DOCKER_HOME VALUE : tcp://localhost:2375
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spotify/docker-maven-plugin/issues/267?email_source=notifications&email_token=AA4FBJ5UPW4FQQKFGHPG2WDQ5XWI7A5CNFSM4CMZRJE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI5MEGA#issuecomment-574276120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4FBJ53I7OO2U5MWJ5QYKLQ5XWI7ANCNFSM4CMZRJEQ .
Description
I have initially executed the command mvn clean install package on the Root Hygieia, api.jar has been successfully created in the target folder.
Then, Installed mongo db able to connect the api collector with the dashboard db
Then, when I tried to execute the below command for Docker image,
mvn clean package -pl api docker:build
facing the Build failure issue
How to reproduce
[Add steps on how to reproduce this issue]
What do you expect
[Describe what do you expect to happen]
What happened instead
[Describe the actual results]
Software:
Full backtrace