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 <user>).
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'.
This commit is contained in:
1 parent
30c5ea7fb2
commit
6c2bfee616
1 file changed
+1
-1
@@ -99,4 +99,4 @@ RUN \
|
||||
&& usermod -aG sudo "$docker_user"
|
||||
|
||||
# Set the default user
|
||||
USER $docker_user:$docker_user
|
||||
USER $docker_user
|
||||
Reference in new issue
Block a user