You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: init.sh
+21-20Lines changed: 21 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -53,10 +53,10 @@ if [[ "${LOG,,}" != "true" ]]; then
53
53
fi
54
54
fi
55
55
56
-
# check if the user and group IDs have been set
57
-
if [[ "$CURRENTUID"-ne"0" ]]&& [[ "${ROOTLESS,,}"!="true" ]];then
58
-
printf"${MSGERROR} Current user (%s) is not root (0)\\nPass your user and group to the container using the PGID and PUID environment variables\\nDo not use the --user flag (or user: field in Docker Compose) without setting ROOTLESS=true\\n""$CURRENTUID"
59
-
exit 1
56
+
# check if the user and group IDs have been set. If so, reset HOME to the upstream default
57
+
if [[ "$CURRENTUID"-ne"0" ]];then
58
+
HOME="/root"
59
+
printf"${MSGWARNING} Current user (%s) is not root (0).\\nNo permissions will be adjusted as we're running within a rootless environment.\\n""$CURRENTUID"
0 commit comments