fix: add coder user to docker group (#40)

This commit is contained in:
Charles Moog 2020-12-16 17:00:01 -06:00 committed by GitHub
parent 99c358179d
commit ce6258c83e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -26,4 +26,7 @@ RUN systemctl enable docker
# Add coder user.
RUN useradd -mUs /bin/bash coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
RUN usermod -aG docker coder
USER coder

View File

@ -31,4 +31,7 @@ RUN systemctl enable docker
# Add a user `coder` so that you're not developing as the `root` user
RUN adduser coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
RUN usermod -aG docker coder
USER coder

View File

@ -28,4 +28,7 @@ RUN ln -s /lib/systemd/systemd /sbin/init
# Add a user `coder` so that you're not developing as the `root` user
RUN adduser --gecos '' --disabled-password coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
RUN usermod -aG docker coder
USER coder