Skip to content

docker: v2.24 no longer starting with custom PUID/PGID and database volume mapping #2633

Description

@eduardocorral

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

mkdir /tmp/fb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions