jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-49437] Impossible to specify user/uid to use inside container
- Dominant language
- Java
- Stars
- 527
- Forks
- 422
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
When launching the docker agent, the following option is always added to the command line.
-u 1000:1000
It can be problematic if we want to use a specifically configured user inside the docker container agent, since adding a -u option in the args results in an unexpected command.
It would be very useful to have an option to specify the user mapping inside the container.
---
Originally reported by bgras, imported from: Impossible to specify user/uid to use inside container
Raw content of original issue
When launching the docker agent, the following option is always added to the command line.
-u 1000:1000
It can be problematic if we want to use a specifically configured user inside the docker container agent, since adding a -u option in the args results in an unexpected command.It would be very useful to have an option to specify the user mapping inside the container.
environment
```
docker-pipeline-plugin:1.15
Jenkins 2.105 in docker container
```
Contributor guide
Assessment
This issue has not been assessed yet.