Skip to content

Commit

Permalink
Remove --system flag from entrypoint user creation
Browse files Browse the repository at this point in the history
Eliminates the `Non-root UID is greater than SYS_UID_MAX` warning.
  • Loading branch information
theory committed May 10, 2024
1 parent 62231c1 commit 4489051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ set -e
USER_ID=${LOCAL_UID:-1001}

echo "Starting with UID $USER_ID"
useradd --system --create-home --shell /bin/bash -g root -G sudo -u "$USER_ID" "$AS_USER"
useradd --create-home --shell /bin/bash -g root -G sudo -u "$USER_ID" "$AS_USER"
export HOME="/home/$AS_USER"
exec /usr/sbin/gosu "$AS_USER" "$@"

0 comments on commit 4489051

Please sign in to comment.