Skip to content

Commit

Permalink
fix bug of container group already existing
Browse files Browse the repository at this point in the history
  • Loading branch information
wwbrannon committed Sep 26, 2024
1 parent 811112a commit 5ae7847
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion images/comments/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN if ! getent group ${GROUPID} >/dev/null; then \

# Check if the user exists, and create it if it doesn't
RUN if ! getent passwd ${USERID} >/dev/null; then \
useradd -m -u ${USERID} -g mygroup myuser; \
useradd -m -u ${USERID} -g ${GROUPID} myuser; \
fi

USER ${USERID}:${GROUPID}
Expand Down
2 changes: 1 addition & 1 deletion images/sentiment-topic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN if ! getent group ${GROUPID} >/dev/null; then \

# Check if the user exists, and create it if it doesn't
RUN if ! getent passwd ${USERID} >/dev/null; then \
useradd -m -u ${USERID} -g mygroup myuser; \
useradd -m -u ${USERID} -g ${GROUPID} myuser; \
fi

USER ${USERID}:${GROUPID}
Expand Down
2 changes: 1 addition & 1 deletion images/streamlit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN if ! getent group ${GROUPID} >/dev/null; then \

# Check if the user exists, and create it if it doesn't
RUN if ! getent passwd ${USERID} >/dev/null; then \
useradd -m -u ${USERID} -g mygroup myuser; \
useradd -m -u ${USERID} -g ${GROUPID} myuser; \
fi

USER ${USERID}:${GROUPID}
Expand Down

0 comments on commit 5ae7847

Please sign in to comment.