Replies: 8 comments 6 replies
-
|
Hi everbody So let me make a proposal for a non-root yml from the things I have learned… I have created a user Immich ( Here are the things I have changed:
I haven’t tried it yet. Will this work? Any suggestions for improvement? Do we really need Thanks. |
Beta Was this translation helpful? Give feedback.
-
I want to create two Samba shares for me and my wife. We will upload the photos from our mobile phones to those shares. Immich is supposed to take the photos from those shared folders via external libraries. Those folders and photos are owned by me and my wife's respective user and group. The Immich user, who is supposed to run the Immich server, will be part of both user groups and should therefore be able to access the photos.
Just the Immich service. I am thinking about going full rootless but I am quite new to the whole thing...
Much appreciated. Thanks a lot. Since you did not add a mount for
I think I can live with user 999!? Thanks for the hint! |
Beta Was this translation helpful? Give feedback.
-
I just figured that this might not work at all since Immich is part of the users' groups outside the container but not inside the container... Think I will make one share for the Immich user then... |
Beta Was this translation helpful? Give feedback.
-
Guess I can get this fixed via |
Beta Was this translation helpful? Give feedback.
-
|
Here is the final result... I created a non-root Immich user which the Immich service is run under. I have also created two conenventional users and corresponding groups with respective SAMBA shares. Immich is part of the conventional users' groups in order to be able to access their assets.
Everything seems to be working beautifully. |
Beta Was this translation helpful? Give feedback.
-
|
In case you're interested, here is the equivalent of the given configuration, except using postman and in a more secure environment (using dedicated user namespaces, no new privileges etc...) |
Beta Was this translation helpful? Give feedback.
-
|
Installed docker on a fresh Ubuntu 24.04 server. Tried to migrate an Immich setup previously ran as root. I did the users, etc, changed the docker-compose.yml config as the docs recommended, with the new 'immich' user's uid:gid, etc. Then immich_server container failed to start - with access denied to profiles folder. I removed the user uid settings from docker-compose.yml, and everything seems to work fine. I confirmed that that the user inside the container is root, but it is mapped to 'immich' user outside the container. (docker.com rootless setup) |
Beta Was this translation helpful? Give feedback.
-
|
Hmmz....needing a solution for library being owned by non-root user. Ideas? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody
I want to run Immich as a non-root user. I have learned that this is possible but I can't do anything with the respective FAQ. Guess I am lacking some Docker knowledge...
Adding user and group to the yml was the easy part. But what about the volume part? Are those 3 additional volumes needed or not? Do I have to remove the top-level volume and point all volumes to host directories to which the respective user has read/write permissions? The FAQ is also a bit misleading IMHO in that those 3 additional volumes look to be named volumes which I suppose do not work in a non-root environment!?
Can somebody post a proper non-root sample yml?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions