Re: Jenkins user is no member of docker group

2021-04-30 Thread Chris Dams
Hello All,

I found out what the problem was. It turns out that in the Jenkinsfile the 
agent was 'dockerfile' so it actually was
running docker inside docker. The outer docker invocation is where it lost 
the groups. Adding a simple -u option
with the correct groups to the outer docker arguments solved it the problem.

Have a nice day,
Chris

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c8a90f09-41d7-406f-ae00-3d248a5d4084n%40googlegroups.com.


Jenkins user is no member of docker group

2021-04-29 Thread Chris Dams
Dear all,

I have a jenkins slave running on linux (jenkins version 2.249.2). The 
strange thing is that when I log into this slave via ssh using the jenkins 
account I can see (using the groups command) that 'jenkins' is member of 
some groups, including the docker group. However, when I put an "sh 
'groups' "line in the Jenkinsfile this user jenkins is not a member of any 
group besides the 'jenkins' group. This is a problem because it means that 
I cannot do a docker build from this jenkins file. Some time ago this used 
to be work but it stopped working for no apparent reason.

Do any of you have any idea what to do about this?

Thanks in advance!
Chris

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cdcd58a2-4569-4654-b84b-51a3dfdff830n%40googlegroups.com.