Closed Oliver3911 closed 3 years ago
Unfortunately my skills in this regard is pretty much zero and I don't currently have the time to try and figure it out either. I might get time later, otherwise if someone submits a pull request to address the issue I'd be happy to accept one.
can't you just create the container with the --user argument?
docker create ... --user 1001:1001 ...
I will take a look and see what happens when I have some time.
I will take a look and see what happens when I have some time.
Oh I meant the user deploying the container. Not for the image itself
For example:
> docker create --name=syncplay --net=host --hostname=syncplay.example.com --user 1001:1001 -e PASSWORD=hunter2 -e PORT=8999 -e TLS=/certs -v /etc/ssl/syncplay:/certs ninetaillabs/syncplay-server
> docker start syncplay
> docker exec syncplay sh -c "id && hostname"
uid=1001 gid=1001
syncplay.example.com
Hello, is it possible to change the uid and gid of the user which is running syncplay-server in the container? e.g. via an docker -e parameter. I am trying to use this with a cert which is linked via a Volume. But the files are not owned from uid/gid 800, so they are not readable inside the container from the syncplay-server user. Changing the ownership of the cert files is not an option.
Log of Syncplay container
Permissions inside the container
docker-compose.yml
FYI I am using the linuxserver/SWAG Proxy to generate the certs and adding them to the syncplay-server as described here: https://github.com/linuxserver/docker-swag#using-certs-in-other-containers