Skip to content

Commit

Permalink
Try using sudo to run adduser command
Browse files Browse the repository at this point in the history
Build error logs that prompted this commit:
> adduser: Only root may add a user or group to the system.
  • Loading branch information
sgibson91 committed Jul 22, 2022
1 parent d05d048 commit e5472e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARG NB_UID
ENV USER ${NB_USER}
ENV HOME /home/${NB_USER}

RUN adduser --disabled-password \
RUN sudo adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
Expand Down

0 comments on commit e5472e9

Please sign in to comment.