docker-plex-media-server
docker-plex-media-server copied to clipboard
Unable to run as anything other than 797:797
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
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?
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....
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