[Feature Request] Run docker as non-root user #5854
-
DescriptionProblem Trying to run the Homepage container as non-root. The directory that's mounted to config Line 45 in 8377174 Which causes init to fail when that directory on the host is not writable by 1000:1000 with this error: ❌ Failed to initialize required config: /app/config/settings.yaml
Reason: EACCES: permission denied, copyfile '/app/src/skeleton/settings.yaml' -> '/app/config/settings.yaml'
Hint: Make /app/config writable or manually place the config file.
Fixing ownership of /app/config
Warning: Could not chown /app/config; continuing anyway
/app/.next already owned by correct UID/GID or running as root, skipping chown
▲ Next.js 15.5.2
- Local: http://localhost:30054
- Network: http://0.0.0.0:30054
✓ Starting...
✓ Ready in 108ms
❌ Failed to initialize required config: /app/config/settings.yaml
Reason: EACCES: permission denied, copyfile '/app/src/skeleton/settings.yaml' -> '/app/config/settings.yaml'
Hint: Make /app/config writable or manually place the config file.
Fixing ownership of /app/config
Warning: Could not chown /app/config; continuing anyway
/app/.next already owned by correct UID/GID or running as root, skipping chown
▲ Next.js 15.5.2
- Local: http://localhost:30054
- Network: http://0.0.0.0:30054
✓ Starting...
✓ Ready in 106ms
❌ Failed to initialize required config: /app/config/settings.yaml
Reason: EACCES: permission denied, copyfile '/app/src/skeleton/settings.yaml' -> '/app/config/settings.yaml'
Hint: Make /app/config writable or manually place the config file.Even if that directory on the host is writable by others, Homepage willl still throw some warnings: 025-10-08 15:34:04.157330+00:00Fixing ownership of /app/config
2025-10-08 15:34:04.157610+00:00Warning: Could not chown /app/config; continuing anyway
2025-10-08 15:34:04.158308+00:00Fixing ownership of /app/config/logs
2025-10-08 15:34:04.158543+00:00Warning: Could not chown /app/config/logs
2025-10-08 15:34:04.158953+00:00/app/.next already owned by correct UID/GID or running as root, skipping chownSo even if I run the container as non-root, init will still not be able to chown anything. It would be nice to isolate this container from host root. Related to: truenas/apps#3345 OtherNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
|
Did you review https://gethomepage.dev/installation/docker/ |
Beta Was this translation helpful? Give feedback.
-
|
If you'd like to test out the docker image tagged Edit: No reply, cool. Merged and released anyway. We'll see |
Beta Was this translation helpful? Give feedback.
-
|
This discussion has been automatically closed because it was marked as answered. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
If you'd like to test out the docker image tagged
feature-uidand let me know how it goesEdit: No reply, cool. Merged and released anyway. We'll see