From 6c2bfee616af266eb10dc3409bb4747db2cbb00c Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 3 Apr 2023 11:43:37 -0400 Subject: [PATCH] fix (docker): Set default user without specific group Bugs (fixed): * The default user does not have sudo permission in the container, unless the user is specified explicitly in the 'docker exec' cmd (via -u ). Cause: When the default user is specified with a specific group (in this case, its namesake 'bts'), it is excluded from all other groups, including 'sudo'. --- docker/sparkd/dev/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/sparkd/dev/Dockerfile b/docker/sparkd/dev/Dockerfile index 91e01055a..66cc407bd 100644 --- a/docker/sparkd/dev/Dockerfile +++ b/docker/sparkd/dev/Dockerfile @@ -99,4 +99,4 @@ RUN \ && usermod -aG sudo "$docker_user" # Set the default user -USER $docker_user:$docker_user +USER $docker_user