Aune
IImmich
•Created by Aune on 12/21/2022 in #help-desk-support
Running Docker images with non-root UID
Very excited to get started with Immich, it seems perfect for my use-case.
I however try to avoid running any Docker containers as root for security purposes and external backup workflows.
I am having very little luck getting immich-machine-learning, immich-server and immich-microservices running with UID 1000.
I have tried setting
user: 1000:1000
in the Docker-Compose but as soon as the container attempts to write/read any data on the shared volume it encounters permission issues.
I have also tried the typical :
- PUID=1000
- PGID=1000
as env variables, but with no luck. These are typically supported or at least added by a community image by groups such as linuxserver.io. I have not found any evidence they are supported by Immich.
Are there any recommended ways to achieve non-root Docker images? Is this even something other users have trouble with?10 replies