From b0d32d78af4664f821e68688bae8e75e647d3c71 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 13 Feb 2023 18:31:59 +0100 Subject: [PATCH] Dockerfile: don't create gluon user (fixes support for UID != 1000) The new user `gluon` gets UID 1000 and GID 1000 and cannot write to the mounted gluon directory unless the calling user has the same UID. On Linux only the first non admin user gets UID 1000, so docker and podman fail for all other users. On macOS there is typically no user with UID 1000, so docker and podman fail for all users. When no `gluon` user is created, a default user with the same UID and GID as the calling user is used and everything works fine. Signed-off-by: Stefan Weil --- contrib/docker/Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile index a241906b..1333d8e0 100644 --- a/contrib/docker/Dockerfile +++ b/contrib/docker/Dockerfile @@ -29,8 +29,5 @@ RUN mkdir /tmp/ec &&\ mv bin/ec-linux-amd64 /usr/local/bin/editorconfig-checker &&\ rm -rf /tmp/ec -RUN useradd -d /gluon gluon -USER gluon - VOLUME /gluon WORKDIR /gluon