podsync icon indicating copy to clipboard operation
podsync copied to clipboard

Set custom UID and GID in docker

Open mada199122 opened this issue 4 years ago • 2 comments

Is it possible to set a different UID and GID in docker compose?

If I add the command user: $(id -u):$(id -g) with a UID not belonging to a root user Podsync cannot access to the file.

Thanks

mada199122 avatar Aug 20 '21 06:08 mada199122

If you're changing the user an existing install runs as, you'll likely need to go through and change the permissions on all the files so that the new user has access to them. That's likely what caused the issue when changing the user in Docker directly.

girlpunk avatar Nov 04 '21 17:11 girlpunk

tried with a clean new volume... but it doesn't work...

mada199122 avatar Nov 05 '21 10:11 mada199122

Setting a custom UID and GID works for me if I also mount a volume for /app/db in the container with e.g. -v podsync-database:/app/db.

paulstaab avatar Dec 03 '22 11:12 paulstaab