© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•13mo ago•
14 replies
feklee

Running as non-root: Can I just chown `library` & `postgres`?

In the documentation , it says: "You may need to add mount points or docker volumes for the following internal container paths:"

Instead of manually adding mount points, can I simply proceed as follows?

1. Add:
user: felix:felix
user: felix:felix
to all containers:
immich-server
immich-server
,
immich-machine-learning
immich-machine-learning
,
redis
redis
, and
database
database


2. (Add the recommended snippet for futher hardening to each container. See documentation This snippet sets
security_opt
security_opt
and
cap_drop
cap_drop
.)
3. Change owner:
chown -R felix:felix library/ postgres/
chown -R felix:felix library/ postgres/

4. Restart Immich:
docker compose up -d --force-recreate
docker compose up -d --force-recreate


I already have a running setup, currently as
root
root
and tens of thousands of raw image files indexed.
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Permission denied for migrations when running as non-root
ImmichIImmich / help-desk-support
9mo ago
starting as non root user
ImmichIImmich / help-desk-support
14mo ago
Trying to run as non root
ImmichIImmich / help-desk-support
8mo ago
immich server fails as non-root
ImmichIImmich / help-desk-support
14mo ago