missing group in pipelines run leads to docker failure

28 views
Skip to first unread message

Nathan T

unread,
Mar 30, 2017, 6:30:33 PM3/30/17
to Jenkins Users
hey guys. i have a weird problem w/ jenkins 2.52, i added the jenkins user to the docker group, and when i run `id` locally, i get `uid=109(jenkins) gid=114(jenkins) groups=114(jenkins),998(docker)` (which is fine)



but when `id` is run in the jenkins pipline, i get `uid=109(jenkins) gid=114(jenkins) groups=114(jenkins)`



so I get: `Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock` via the jenkins pipeline run, but docker is fine when run as the jenkins user locally on the box...

any ideas?

Nathan T

unread,
Mar 30, 2017, 6:49:12 PM3/30/17
to Jenkins Users
ok, but it's fine if docker is the primary group?

Ramanathan Muthaiah

unread,
Mar 31, 2017, 9:35:25 AM3/31/17
to Jenkins Users
Nathan,

so I get: `Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock` via the jenkins pipeline run, but docker is fine when run as the jenkins user locally on the box...


http://nknu.net/how-to-configure-docker-on-ubuntu-15-04/

This came in handy for me. Pls have it a try.

/Ram
Reply all
Reply to author
Forward
0 new messages