Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Volume permission problems sample
#!/bin/bash
USER_ID=${LOCAL_UID:-9001}
GROUP_ID=${LOCAL_GID:-9001}
echo "Starting with UID: $USER_ID, GID: $GROUP_ID"
useradd -u $USER_ID -o -m user
groupmod -g $GROUP_ID user
export HOME=/home/user
exec /usr/sbin/gosu user "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment