Advices & help needed : Github + Jenkins + Docker, permission denied

52 views
Skip to first unread message

Sowlène

unread,
Aug 17, 2017, 7:06:16 AM8/17/17
to Jenkins Users
Hi there,
I'm a young student trying to do something a little bit complicated to me :)

I've got a repo on github with my Dockerfile in. with many config file too, as an Entrypoint.sh who initialize some things when i run Docker Container with my docker image.

I would like to connect my github repo with Jenkins (something i think i successed) and i want to use Docker directly into Jenkins.

In fact We have :

My Github Repo with my Dockerfile manage by Jenkins2 (& pipelines/BlueOcean) => Jenkins Build my Docker Image with my Dockerfile on Github
( docker build -t solene/installtv2 . )

At this step, I just want to use Jenkins to Run docker container to test applications dev by my coworkers.

But each time I try to run Docker container this error appear :

docker run -e DATABASE_TYPE=mysql -e DATABASE_USER=tracimuser -e DATABASE_PASSWORD=tracimpassword -e DATABASE_HOST=192.168.1.73 -e DATABASE_NAME=tracimdb solene/installtv2

container_linux.go:262: starting container process caused "exec: \"/tracim/entrypoint.sh\": permission denied"

docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"/tracim/entrypoint.sh\": permission denied".

time="2017-08-17T11:21:12+02:00" level=error msg="error waiting for container: context canceled"

script returned exit code 126


I don't understand why :/ When I try it localy it works :/
Do you have some advices ?
Is it better to use master/slave configuration in this case ? (thing i don't know how to use, and i don't really understand)

Thank's for your help ! :)

Message has been deleted

Baptiste Mathus

unread,
Aug 30, 2017, 9:42:40 AM8/30/17
to jenkins...@googlegroups.com
It's a bit surprising you say it works locally, it seems like a non-Jenkins related issue. More like something related with the way you build your Docker image.

Did you try really from the same env that Jenkins runs in, not just your laptop? I suspect you should see that from the command line there too, and hopefully that'd help you understand what's different/wrong from your machine.

My 2 cents

2017-08-21 13:48 GMT+02:00 Sowlène <sowlo...@gmail.com>:
Up, please some one?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ae40c79b-51e7-4a0b-a792-9ba256603a4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages