Navidrome: Can the UID and GID set through Docker environments options?

Created on 27 Sep 2020  路  3Comments  路  Source: deluan/navidrome

Hi,
Can I set the Users UID en GID via the Docker environments options? Will this work?

enhancement help wanted

Most helpful comment

We've discussed the possibility to enable this functionality (setting UID/GID with env vars) in the past, but decided against it because:
1) This is a responsibility of Docker itself (or the container platform used), not the app
2) I plan to eventually rewrite the docker images to be based on LinuxServer, and this is a given in their images.

I'll keep this open, and will use this to track the LinuxServer "migration".

It would be awesome if someone could step in and contribute with this....

All 3 comments

No it won't... I would have to add some logic to the container image to enable this. That's how the LinuxServer.io images work.

Question: What is your use case for this? Can't you just call docker with --user ${UID}:{GID}? If using docker-compose, you can set it in the docker-compose.yml file with ex: user: 1000:1000.

Well I鈥檓 using Docker on a Synology NAS and they have a nice GUI to configure the Docker containers. So the easiest and logical way to add GID and GUI in this case is via the GUI environment tab. Indeed the same way as linuxserver.io is doing it.

e.g. like this

image

But as you stated that it isn鈥檛 possible for now so I guess I will have to do it by CLi.

We've discussed the possibility to enable this functionality (setting UID/GID with env vars) in the past, but decided against it because:
1) This is a responsibility of Docker itself (or the container platform used), not the app
2) I plan to eventually rewrite the docker images to be based on LinuxServer, and this is a given in their images.

I'll keep this open, and will use this to track the LinuxServer "migration".

It would be awesome if someone could step in and contribute with this....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AvdWerfhorst picture AvdWerfhorst  路  6Comments

jvoisin picture jvoisin  路  10Comments

TheForcer picture TheForcer  路  5Comments

GitSchorsch picture GitSchorsch  路  9Comments

certuna picture certuna  路  6Comments