Suwayomi / docker-tachidesk

Run Suwayomi-Server in a docker container
Mozilla Public License 2.0
267 stars 57 forks source link

Support alternative user/group (UID/GID) #72

Closed chancez closed 10 months ago

chancez commented 10 months ago

I'd like to run the container with an alternative user/group similar to most linuxserver.io docker images. The main reason is it lets me ensure that different containers can all access files created or managed by other containers. For example komga runs with uid 99 and GID 100 but tachidesk runs with 1000, so komga cannot read the files tachidesk creates.

Syer10 commented 10 months ago

Feel free to open a PR. Our old docker dev that this was the standard but I feel like its just been causing us issues

chancez commented 10 months ago

@Syer10 Would you be open to using the Linuxserver.io base image? https://github.com/linuxserver/docker-baseimage-ubuntu

The Dockerfile would be similar to this one https://github.com/linuxserver/docker-unifi-controller/blob/master/Dockerfile (which is another application written in Java using their base image)

Syer10 commented 10 months ago

What platforms does the linuxserver base image support? I don't want to cut too many platforms out

chancez commented 10 months ago

Ah good point. Only amd64/arm64 I think, and as far as I can tell, they're not multi-arch images either which is a bit annoying too. I have built images that support arbitrary UID/GIDs myself too, but I'd have to remember how to do it.