Re: Jenkins Pipeline Docker Permissions

2017-07-10 Thread Richard Bywater
Took me a while to come back but just wanted to point out the group approach is what is "recommended" by Docker in the docs @ https://docs.docker.com/engine/installation/linux/linux-postinstall/ So definitely the least hacky of all the solutions :) Richard. On Sun, 9 Jul 2017 at 06:55 Dan Kinon

Re: Jenkins Pipeline Docker Permissions

2017-07-08 Thread Dan Kinon
I'm running centos7 and installing pre-packaged docker 1.12.6 from epel7. I did see the suggestion out in the wild to add the jenkins user to the "docker" (specifically "dockerroot" on my installation) group. I tried this early on and it had no effect. I noticed that the unix socket

Re: Jenkins Pipeline Docker Permissions

2017-07-07 Thread Richard Bywater
I haven't checked for a while but it used to be that if you add a user to the "docker" group they'll be able to access docker commands. Richard On Sat, 8 Jul 2017, 9:27 AM Dan Kinon wrote: > Hello, >I'm running jenkins as a non-root user and am attempting to use a >

Jenkins Pipeline Docker Permissions

2017-07-07 Thread Dan Kinon
Hello, I'm running jenkins as a non-root user and am attempting to use a docker agent in my jenkinsfile. When I run the job, I get the following error: [VA_Build_containers_develop-NJECFMY5Y6Z5OKTQVWTCSYEZEVQKAXGGRGECV2LSFA2YZ2ALBWQQ] Running shell script + docker inspect -f .