-
Bug
-
Resolution: Unresolved
-
Minor
-
None
User id should not be forced when using dockerfile in pipeline.
As it is not safe to match username (user id are incremented on each user creation, host and container may not have the same one)
Here is a very very very simple example not working :
https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Jenkinsfile
https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Dockerfile
Here is a simple and ugly working workarround :
https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Jenkinsfile.working
https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Dockerfile.working
Here is the method, I think should be deleted () from your source code:
Related PR:
https://github.com/jenkinsci/docker-workflow-plugin/pull/57
https://github.com/jenkinsci/docker-workflow-plugin/pull/130
Thank you !
- is related to
-
JENKINS-54408 docker exec runs as root within docker.image.inside which docker run runs as the jenkins user
- Open