Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

non root user #260

Open
JoshCu opened this issue Feb 3, 2025 · 0 comments
Open

non root user #260

JoshCu opened this issue Feb 3, 2025 · 0 comments
Assignees

Comments

@JoshCu
Copy link
Collaborator

JoshCu commented Feb 3, 2025

When running the container on linux all created files are owned by the default user root. Adding --user 1000:1000 to the docker run command will execute it as that user so all created files will be owned by whichever user has uid 1000 (by default the first user added to the machine on ubuntu).
To make it easier to run the container as a non-root user, we can create some new user at the end of the build process and make sure that user has all the permissions needed to run ngen.
This is not as much of an issue on wsl and mac but would make things easier to use for linux executions.
I've looked into this a few times but I'm still not 100% sure this is the best way to go, open to suggestions. This isn't urgent but is inconvenient for me at least so I'll experiment some more and make a PR if nobody else gets a chance to look at this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants