Skip to content

Commit

Permalink
[docker/podman] Fix user permissions
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nasahlpa committed Oct 5, 2023
1 parent bd94e71 commit 05fc0a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ RUN apt-get update && \
ca-certificates \
screen \
locales \
tzdata \
util-linux && \
tzdata && \
curl -fsSL https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | DEBIAN_FRONTEND="noninteractive" bash && \
apt-get update && \
apt-get install --no-install-recommends -y git-lfs
Expand Down

0 comments on commit 05fc0a6

Please sign in to comment.