Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run as anything other than 797:797 #33

Open
gr-butler opened this issue Oct 19, 2016 · 3 comments
Open

Unable to run as anything other than 797:797 #33

gr-butler opened this issue Oct 19, 2016 · 3 comments

Comments

@gr-butler
Copy link

gr-butler commented Oct 19, 2016

Tried starting with --user and -e PGID=1002 -e PUID=1002 options etc. Any user other than 797 causes immediate crash and restart. (--user fails with "docker error response from daemon linux spec user unable to find user xxxx", a known issue i gather).

Problem I have is to access the media folders the user must be group www-data. I've tried creating a plextv user (UID: 797, GID 797) and adding it to the www-data group. Plex now starts, can see the media folder but says there is no media in any folder.

I'm new to docker and plex. Have the Timhaak version working ok though.

EDIT: recreated user plex tv uid:gid 797:797 which does have access to the media folder - I can su to the user and navigate to folders. Plex still says library has no media.

EDIT2: Plex can find and index music. It just seems to be video thats broken

@wernight
Copy link
Owner

Just ran docker run --rm -it --user 1002:1002 wernight/plex-media-server and it seems to work fine. You should be able to put any ID there. User and group.

There is no PGID or PUID environment variable; those are custom script done by Timhaak.

Are you on Windows?

@gr-butler
Copy link
Author

On 23 October 2016 at 22:53, Werner Beroux [email protected] wrote:

docker run --rm -it --user 1002:1002 wernight/plex-media-server

Hi,

Thanks for responding. I'm on Debian 8.

Based on your reply I created a container with

docker run --rm -it --user 1002:1002 --name=wernplex --net=host -v
/etc/localtime:/etc/localtime:ro -v /home/wdtv/.config/plex:/config -v
/shares/video:/media/video -v /shares/audio:/media/audio -v
/shares/pictures:/media/pictures -p 32400:32400
wernight/plex-media-server:latest

and that appears to work.

But when I create a container with

docker create --name=wernplex --user 1002:1002 --net=host -v
/etc/localtime:/etc/localtime:ro -v /home/wdtv/.config/plex:/config -v
/shares/video:/media/video -v /shares/audio:/media/audio -v
/shares/pictures:/media/pictures -p 32400:32400
wernight/plex-media-server:latest

and then start it with

docker start wernplex

I get

root@gdserver:~# docker ps -a
CONTAINER ID IMAGE
COMMAND CREATED STATUS
PORTS NAMES
312e801cb185 wernight/plex-media-server:latest "/entrypoint.sh
/bin/" About a minute ago Exited (1) 34 seconds
ago wernplex

Crashes immediately.

I know it's probably an obvious mistake....

@wernight
Copy link
Owner

I never use docker create, only docker run. If you want to start in background do docker run -d .... You can also see the log via docker logs container_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants