I need to run my very own plex server on my Ubuntu machine inside a docker container.
The media (motion pictures) are on my exterior exfat exhausting drive that’s usb linked to the server.
First I pulled the official picture from docker hub, then I adopted the information on the docker hub web page. I created quantity directories for the config- and transcode recordsdata inside /var/lib/plex on the host machine. Then I began the container with the next 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:/knowledge > plexinc/pms-docker
I then opened 198.51.100.0:32400/internet on my consumer in the identical community and obtained greeted by the acquainted Plex interface. There have been no libraries, so I opened up the settings. When setting the folder for the library, I seen that my /media/wd_internal mount wouldn’t present up within the listing.
After some analysis I discovered this step for step information. The docker run command was edited and
-v /media/wd_external:/knowledge obtained changed by -v
I labored via it till Step C the place you must set the permissions for the newly created /disks listing with
chown -R chuck:chuck /disks. When utilizing that command, I’ve obtained the error
Operation not permitted. Then I used the command
chattr -iR /disks as a result of I’ve learn the problem may be the immutable attribute set however obtained the error
Inappropriate ioctl for machine whereas studying flags on /disks/wd_external. To resolve this error I attempted to edit the /and so forth/fstab file and add the umask=022 choice but it surely additionally didn’t work. Excerpt:
#Further exterior drives #Mount Western Digital 8TB at /disks/wd_external for Plex UUID=208D-AFDA /disks/wd_external exfat defaults,auto,rw,nofail,umask=022 Zero 1
How can I mount the exhausting drive or set its permissions in order that it’s seen for plex?
Personal info was randomized.