-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven build with Docker plugin fails when executed via Jenkins #113
Comments
This plugin communicates with the docker daemon via http. Make sure that your jenkins build runs in an environment where docker http rest api is available. |
I'm running into similar problems with this. I'm using the 5.0.0 version of the plugin (well, a local 5.0.1-SNASPHOT that enables some debug statements I added), and I've exposed the 2375 port on my docker host. This host is also running a containerized version of Jenkins, and I'm using the 172.17.0.1 address for the host (this is apparently automatically created but that's what it uses in my environment). I've setup a I've gotten past the connection refused with all of that, but now I'm getting a 404 when trying to pull an image from the public docker registry. In case anyone is curious and/or has an idea, my build is at: http://ci.commonjava.org:8080/job/kojiji-PRs/23/console After much googling and head-scratching, I've also synchronized my timezone in the container and setup NTP on the docker host, just to be sure. So it's not a time issue. |
I've just submitted PR #117 which was enough to get docker start/stop/create working, when used with some customization of the docker environment and tweaking the Jenkins Docker container I was running. The Jenkins setup I'm using is at: https://github.com/Commonjava/commonjava-ci-jenkins-docker I setup a https://github.com/Commonjava/jhttpc/blob/master/pom.xml Hopefully if I can get this PR merged, the information above will help others trying to run docker containers in CI. |
I installed docker locally (mac book pro) and I successfully wrote a build script in maven which creates docker containers, executes tests and then terminates the containers. Very good.
Now I used jenkins to run the same maven script on the server side. The server side is a red hat server running docker 1.10.3
But on the server side I get this error
The text was updated successfully, but these errors were encountered: