Skip to content
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

Recommendations about setting users in the container images #73

Open
jpkrohling opened this issue Sep 9, 2024 · 0 comments
Open

Recommendations about setting users in the container images #73

jpkrohling opened this issue Sep 9, 2024 · 0 comments

Comments

@jpkrohling
Copy link
Member

          There could be some more things here, e.g. you likely need to create the user in the local environment (see https://stackoverflow.com/questions/67261873/building-docker-image-as-non-root-user)

Additionally, when using shared-volumes (e.g. docker-image as a development tool), there's a set of things you can do so that files generated use the local user, e.g. https://github.com/open-telemetry/weaver/blob/main/docs/docker-guide.md#basic-usage---otel-semconv-codegen

Finally - Many docker images that allow custom users, actually have "flags", even ENV flags, which will allow you to control the UID/GID and username in the container, e.g. if you want to line it up with the local users and shared volumes. (can't find link just now).

Originally posted by @jsuereth in #66 (comment)

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

No branches or pull requests

1 participant