Description
Attempting to start
- as a container
- mapping /database volume
- custom PUID/PGID user/group id
Expected behaviour
I should be able to start the process with database mapped from outside the container, and custom GID/UID.
What is happening instead?
Fails to start with
2023/08/10 00:45:15 open /database/filebrowser.db: permission denied
2023/08/10 00:45:16 open /database/filebrowser.db: permission denied
Additional context
- Using filebrowser as a container
- s6 version (v2-s6)
How to reproduce?
Get the current user uid/gid
$ id
uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),974(docker),...
Create folder to mount as /database
Start with
docker run --rm -p 8080:80 -e PUID=1000 -e PGID=1000 -v /tmp/fb:/database filebrowser/filebrowser:v2-s6
output shows
...
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
[custom-init] No custom files found, skipping...
[ls.io-init] done.
2023/08/10 00:48:42 open /database/filebrowser.db: permission denied
2023/08/10 00:48:43 open /database/filebrowser.db: permission denied
...
Files
N/A
Description
Attempting to start
Expected behaviour
I should be able to start the process with database mapped from outside the container, and custom GID/UID.
What is happening instead?
Fails to start with
Additional context
How to reproduce?
Get the current user uid/gid
Create folder to mount as /database
Start with
output shows
Files
N/A