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

[docker/podman] Fix user permissions #166

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

nasahlpa
Copy link
Member

@nasahlpa nasahlpa commented Oct 3, 2023

Before this commit, the container started as root with the following warnings:

Creating user 'ot' with UID=0, GID=0. 
groupadd: GID '0' already exists 
useradd: UID 0 is not unique
runuser: user ot does not exist
root@ot-sca:/repo#

With podman 4.3, the option --userns=keep-id when running the container forwards the UID & GID.
Hence, no manual permission management is needed anymore.
Now, the user inside the container matches the user starting it.

@nasahlpa nasahlpa force-pushed the fix_permissions branch 3 times, most recently from 05fc0a6 to f51cb99 Compare October 5, 2023 07:57
Before this commit, the container started as root with the following warnings:
`
Creating user 'ot' with UID=0, GID=0.
groupadd: GID '0' already exists
useradd: UID 0 is not unique
runuser: user ot does not exist
root@ot-sca:/repo#
`
With podman 4.3, the option --userns=keep-id when running the container forwards the UID & GID.
Hence, no manual permission management is needed anymore.
Now, the user inside the container matches the user starting it.

Signed-off-by: Pascal Nasahl <[email protected]>
@nasahlpa nasahlpa marked this pull request as ready for review October 5, 2023 08:15
Copy link
Collaborator

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, many thanks @nasahlpa !

@nasahlpa nasahlpa merged commit f2702f8 into lowRISC:master Oct 16, 2023
2 checks passed
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.

2 participants