docker-plex-media-server icon indicating copy to clipboard operation
docker-plex-media-server copied to clipboard

Check and update README to allow any UID

Open wernight opened this issue 9 years ago • 6 comments

Any UID should be allowed and working fine, so people can use --user 123456 or --user $UID if they so desire.

Update also README to suggest using a random UID in [2000-32000].

wernight avatar Jan 06 '16 10:01 wernight

I tried using user: "1000" in docker-compose and I got this in the logs,

runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users runuser: may not be used by non-root users

And it failed to start.

noaho avatar Aug 03 '18 07:08 noaho

Did you pull the latest version? Which tag?

wernight avatar Aug 07 '18 20:08 wernight

wernight/plex-media-server:autoupdate

I do have another step that pulls the latest version.

Thanks :)

noaho avatar Aug 08 '18 06:08 noaho

The "any UID" is only for the non-autoupdate. This is because autoupdate needs to install Plex, so unless I remove any permission on the Linux FS, the user in the contains needs to be root. After that it changes to plex random UID.

If you feel the documentation isn't clear, what would you suggest?

wernight avatar Aug 09 '18 13:08 wernight

Sorry I'm a bit confused, you say it runs as root and then changes to a random uid... Why can't it run as root and then change to the ID picked through --user $UID?

noaho avatar Aug 13 '18 05:08 noaho

autoupdate starts as root inside the container to install/upgrade plex, then runs as UID 797 (which was randomly chosen).

If you feel the README isn't clear, I'd appreciate suggestions to improve it.

wernight avatar Aug 13 '18 09:08 wernight