wernight / docker-plex-media-server

Dockerized Plex Media Server
https://registry.hub.docker.com/u/wernight/plex-media-server/
MIT License
128 stars 34 forks source link

using NFS mounts for media? #17

Closed jeberly closed 8 years ago

jeberly commented 8 years ago

First off thanks for this container! Was just what I was looking for.

I am trying to start the container using an nfs mount for media directory, but the mounted directory is empty when I add the directory to plex library. I suspect permissions issues, but haven't figured it out yet.

I tested several ways, but I did change the permissions of mount point:

$ sudo ls -ls /mnt/media/
total 28
4 drwxrwxrwx  3 797 797 4096 Dec 30 10:21 @eaDir
8 d--------- 25 797 797 4096 Jan 17 17:23 Movies
8 d---------  2 797 797 4096 Dec 30 10:16 Music
8 d---------  5 797 797 4096 Jan 16 10:03 TV Shows

This is how I start container.

docker run -d --restart=always -i -v ~/plex-config:/config -v /mnt/media/Movies:/Movies --net=host -p 32400:32400 wernight/plex-media-server

Thanks in advance for clues.

$ docker info
Containers: 7
Images: 23
Server Version: 1.9.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 37
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-25-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 4
Total Memory: 15.56 GiB
Name: nuc
ID: IKI7:XCWI:QXF5:53TY:ULDO:W5VM:P2XH:KZLU:DWY5:MEMA:O6E7:6DAG
WARNING: No swap limit support
jeberly commented 8 years ago

I "fixed" my issue by mapping all access to "admin" in my diskstation NFS mount settings. Not the perfect fix, but worked for me. I think I would needed to have added the appropriate access to the hard coded uid in your container on both NFS server and client.