Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Add user-group docker
Browse files Browse the repository at this point in the history
  • Loading branch information
wanjohiryan committed Sep 24, 2023
1 parent 23d0d27 commit 02bf292
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ RUN apt-get update -y && apt-get install -y curl; \
#
# Add user "admin" to the Docker group
#
usermod -a -G docker $USERNAME
groupadd docker; \
usermod -a -G docker $USERNAME; \
newgrp docker

ADD https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker /etc/bash_completion.d/docker.sh

Expand Down Expand Up @@ -189,6 +191,8 @@ VOLUME [ "/certs" ]
ENV DISPLAY :0
ENV DPI 96
ENV CDEPTH 24
ENV USER ${USERNAME}
ENV SHELL /bin/bash

#
# Set systemd as entrypoint.
Expand Down

0 comments on commit 02bf292

Please sign in to comment.