Docker plex does not see media

Server Version#: 1.16

So becuase apt update no longer works i thought I would switch to docker as it should be lest painful way to have plex server and receive updates.
As APT updates stop working and SNAP never really worked. Again, for me, for other it might.
Really i do not want to run it on synology or shield as it, at least for me, always comes with more issues and problems then linux.

So I did
sudo cp -r /var/lib/plexmediaserver/Library ~/docker/plex/plexServerConfig

and then

sudo docker run
-d
–name plex
-e TZ=“Europe/Prague”
** -e PLEX_GID=1000 -e PLEX_UID=1000 \ **
–network=host
-e PLEX_CLAIM=“claim-”
-v ~/docker/plex/plexServerConfig:/config
-v ~/docker/plex/plexServerTranscodeTemp:/transcode
-v ~/docker/plex/plexServerData:/data
plexinc/pms-docker

and it seemed to work until and tried to play media - everything is unavalible

sudo docker exec -it plex /bin/bash
id whoami
uid=0(root) gid=0(root) groups=0(root)

what to do? I’m not fan of docker.

why not just run the native package and set the media directory permissions to 755, and files to 644.

if your media is under /media, this is the root cause. Default Linux permission will not allow this.

I have a how-to for this if you need it

Movies and shows are on /usbmnthdd . It worked ok before with apt version

The root of this is where the files mount on the host and how they are mapped into the containers.

If the PUID/PGID in the contain has permissions on the host to read the media, then it will see them. If /usbmnthdd points to somewhere under /media you will have the same problem as if using the native package.

Care must be taken when Nautilus and automounting is involved. Nautilus automount claims exclusive access to your UID/GID, the PUID/PGID of the container is excluded.

so
-v /usbmnthdd/shows:/shows
-v /usbmnthdd/movies:/movies
and recreating the libraries and fix all broken matches (i’m really glad I stopped hoarding digital stuff)

and then delete and recreate container every time I want to add new path (not ever) should work?

If you’re moving a plex install from native package to docker then you can just map the directories so they’re the same inside and out. Then you don’t have to mess around with moving things or recreating libraries. So in your case:

-v /usbmnthdd/shows:/usbmnthdd/shows
-v /usbmnthdd/movies:/usbmnthdd/movies

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.