Skip to content

Commit 4e30ae8

Browse files
authored
Fixed devcontainer creation for huge user ids (#34948)
1 parent b1e41b9 commit 4e30ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN apt-get update \
4343
&& :
4444

4545
RUN groupadd -g $USER_GID $USERNAME \
46-
&& useradd -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
46+
&& useradd --no-log-init -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
4747
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
4848
&& chmod 0440 /etc/sudoers.d/$USERNAME \
4949
&& :

0 commit comments

Comments
 (0)