-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force jenkins user on exec commands #160
base: master
Are you sure you want to change the base?
Conversation
4bd30db
to
da4a1b0
Compare
How can this be used with DSL?
Obviously we can specify extra args, but will these allow overriding the user in the run stage? I guess one 'ideal' would be to take a |
58d8c8a
to
bc59e1a
Compare
b75282f
to
d43a093
Compare
I rebased my PR on master |
Does this change break any existing usage? If so then it should be implemented conditionally, based on a new parameter etc. |
This is break only the usage when the user force the user as image parameters with -u root:root for example. The current behaviour seems to be an issue for many people currently |
39963ee
to
33cb834
Compare
1ec100b
to
be15d7c
Compare
Okay, I finally succeeded to test the behaviour. |
9b33ba2
to
897d4c7
Compare
replace #130
Allow to specify an different user for the run
Will run
docker run -t -u 1001:1001 -u root:root ...
and
docker exec -u 1001:1001 ...