-
Notifications
You must be signed in to change notification settings - Fork 575
mvn clean package docker:build failing #105
Comments
Are you running this from jenkins or from command line? |
From command.
|
I got the same error running it from a jenkins job. |
Guessing the problem is that your |
No please, its not working On 6 July 2015 at 16:51, Rohan Singh notifications@github.com wrote:
Samuel Anertey Addico Mobile: +2332 040 8005 |
Sorry, we can't help you without details. What exactly happens when you run
|
Response below :
|
OK, there's some configuration issue with how you've setup Docker. Take a look at the Docker docs and ensure you have things installed and configured correctly. Until the Docker command-line works, there's no way that the Maven plugin will work. Closing this for now since it's not an issue with docker-maven-plugin. |
@ samaddico I have the same exact issue with the same exact log, have you figured what was wrong in your Docker setup? |
Hi Alex,I did a system restart and it worked.But my team members kept having this same issue,even after i commited to version control system,so i used another plugin. |
@samaddico I had the same issue. after I ran docker without 'sudo' permission that solved.It explained here. |
That port is owned by root so you need to run the docker task as root.
Or change the user of Docker as @hrandika mentioned: http://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo |
I too had this issue when I was running the build from Bamboo. It was due to the variable, being used for image name, was in capital letter and docker doesnt allow image names having caps |
I am getting the same error.
The value of dockerHost is |
you can try: reason: jenkins should run docker commond, but docker installed as root, so jenkins not have privlege to run docker |
@vdua That seems like the most valid response I've seen here. Any progress on a fix for that? |
I my case, I solved to give permission in /var/run/docker for my usr not root
crisnello@debian-crisnello:/home/crisnello$ sudo chown -R root:crisnello /var/run/docker* |
If you are running it through something like bamboo, remember to restart both docker.service and bamboo-agent.service after adding the user in the docker group. Groups changes are not loaded while its running. |
add jenkins to docker group Then restart your jenkins server to refresh the group. |
please check java version , so check Dockerfile and Dockerdir access 775 and check Dockerfile have a entrypoint. |
Hi ,
So I added these to my pom.xml,to build a docker image of my project.But for some reason it fails.
I keep having this error. i dont know what it means, i have searched through the web but to no avail.Any help will be much appreciated.
Thanks in advance
The text was updated successfully, but these errors were encountered: