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 s

Re: Jenkins user is no member of docker group

2021-04-30 Thread 'Björn Pedersen' via Jenkins Users
Has the slave been restarted after setting the groups? On unix the groups are only refreshed on login. chris@gmail.com schrieb am Donnerstag, 29. April 2021 um 14:23:58 UTC+2: > Dear all, > > I have a jenkins slave running on linux (jenkins version 2.249.2). The > strange thing is that when

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 "s