Skip to content

Commit 46a1101

Browse files
committed
fix: ensure docker group exists before usermod
1 parent 0c1d0cd commit 46a1101

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

base/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ENV LANG=en_US.UTF-8
3434

3535
RUN useradd coder --create-home --shell=/bin/bash --uid=1000 --user-group && \
3636
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd && \
37+
groupadd -f docker && \
3738
usermod -aG docker coder
3839

3940
USER coder

0 commit comments

Comments
 (0)