-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: docker-workflow-plugin
-
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
-