From 05fc0a6e6e579f31c4d7485d5ef9addb0c1440c8 Mon Sep 17 00:00:00 2001 From: Pascal Nasahl Date: Tue, 3 Oct 2023 18:52:44 +0200 Subject: [PATCH] [docker/podman] Fix user permissions 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 --- util/docker/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/docker/Dockerfile b/util/docker/Dockerfile index e9f1ceed9..1bfdf9bcb 100644 --- a/util/docker/Dockerfile +++ b/util/docker/Dockerfile @@ -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