jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-49437] Impossible to specify user/uid to use inside container

Open
#555 2 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 2
  • imported: 2025-12-07

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.