-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
[Enhancement]: Support custom user #1236
Comments
You can change the user using the following container builder API:
However, this won't change the user for files uploaded using the |
I've started working on this and pretty much done, EXCEPT I'm blocked by the fact that
|
Yes, this is unfortunate. I offered my help a couple of times but was declined each time. It's sad that there isn’t more active development and maintenance. Since it is a very important upstream dependency, I looked into generating the client from the OpenAPI spec 1). @0xced took it even further and made good progress 👍. |
Problem
Currently it's not possible to specify the user inside a container. This is problematic for containers that need to be tested to run as non default user / non root environment. This is also a problem for images that explicitly specify user via
USER <name>
directive when used in conjuction withWithResourceMapping
which copies all files into container asROOT
, preventing their manipulation by the user the container is running underSolution
Add
WithUser(string name)to
ContainerBuilderthat would map to
--userargument of
docker run`.Benefit
All proper testing of containers that need to run as non standard user.
Alternatives
No good alternatives have been identified
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered: