Image Version#: 1.19.3.2764-ef515a800 (latest)
I want to run my own plex server on my Ubuntu machine inside a docker container. The media (movies) are on my external exfat hard drive that is usb connected to the server.
First I pulled the official image from docker hub, then I followed the guide on the docker hub page. I created volume directories for the config- and transcode files inside /var/lib/plex on the host machine. Then I started the container with the following command:
sudo docker run \
> -d \
> --name plex \
> --network=host \
> -e TZ="Europe/Paris" \
> -e PLEX_CLAIM="claim-6XRtSSkkCQ4WWyGGrSSH" \
> -v /var/lib/plex/config:/config \
> -v /var/lib/plex/transcode:/transcode \
> -v /media/wd_external:/data \
> plexinc/pms-docker
I then opened 198.51.100.0:32400/web on my client in the same network and got greeted by the familiar Plex interface. There were no libraries, so I opened up the settings. When setting the folder for the library, I noticed that my /media/wd_internal mount would not show up in the list.
After some research I found this step for step guide. The docker run command was edited and -v /media/wd_external:/data \ got replaced by -v /disks/wd_external:/data \ . I worked through it until Step C where you should set the permissions for the newly created /disks directory with chown -R peter:peter /disks . When using that command, I’ve got the error Operation not permitted . Then I used the command chattr -iR /disks because I’ve read the issue might be the immutable attribute set but got the error Inappropriate ioctl for device while reading flags on /disks/wd_external . To solve this error I tried to edit the /etc/fstab file and add the umask=022 option but it also did not work. Excerpt:
#Additional external drives
#Mount Western Digital 8TB at /disks/wd_external for Plex
UUID=208D-AFDA /disks/wd_external exfat defaults,auto,rw,nofail,umask=022 0 1
How can I mount the hard drive or set its permissions so that it is visible for plex?
Private information was randomized.