jboesl / docker-logitechmediaserver

Docker image for Logitech Media Server (lms, SqueezeCenter, SqueezeboxServer, SlimServer).
MIT License
6 stars 6 forks source link

user and group configuration seems not to work #5

Closed slenarduzzi closed 3 years ago

slenarduzzi commented 3 years ago

I get the following error when I add PUID and GUID in the configuration of the container on Synology's Docker :

image

image

If I log in into the bash shell, the ID command shows 101 instead of 1027 :

  squeezeboxserver@logitechmediaserver1:/$ id                                        
  uid=101(squeezeboxserver) gid=65534(nogroup) groups=65534(nogroup)

Thanks

texneus commented 3 years ago

Same problem here. PUID and GUID are just ignored. I thought I read somewhere a few years back that the environment variables for user/group IDs in Docker were depreciated...but don't quote me on that. Using the -u or --user parameter on the docker statement does work as advertized...the container now operates under the ID and group I specify. The config and music directories naturally must have compatible permissions.

Docker command line that works:

docker create \
--name logitechmediaserver \
--net host \
--restart=on-failure:5 \
-u 1000:100 \
-v /path/to/config:/config \
-v /path/to/music:/mnt/Music:ro \
-v /etc/localtime:/etc/localtime:ro \
-t -i jboesl/logitechmediaserver
jboesl commented 3 years ago

I'm no longer changing anything here besides doing basic updates. I think you should take a look at the official image which recently emerged: https://hub.docker.com/r/lmscommunity/logitechmediaserver