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

Ubuntu-22: Update entrypoint to run as non-root on macOS #93

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bcran
Copy link
Member

@bcran bcran commented May 24, 2024

Description

On macOS (and Windows), docker containers run as a more heavyweight VM unlike on Linux. One effect of this is that the code in the entrypoint script will see the UID and GID of the home directory as 0 and try to create a user with UID 0.

Work around this limitation by allowing users to pass in the UID and GID when running the container. Update the Readme.md to suggest using $(id -u) and $(id -g).

Issue #(issue)

Containers Affected

Ubuntu-22

On macOS (and Windows), docker containers run as a more heavyweight VM
unlike on Linux. One effect of this is that the code in the entrypoint
script will see the UID and GID of the home directory as 0 and try to
create a user with UID 0.

Work around this limitation by allowing users to pass in the UID and
GID when running the container. Update the Readme.md to suggest
using `$(id -u)` and `$(id -g)`.

Signed-off-by: Rebecca Cran <[email protected]>
@bcran bcran requested a review from osteffenrh May 24, 2024 12:10
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

Successfully merging this pull request may close these issues.

1 participant