Plex in docker not reading /media folders

Server Version#:
Player Version#:

I was setting up a media server in ubuntu server running inside a vm. I installed docker in it and set up everything from sonarr, radarr, torrent client,plex, etc and after installing everything i realized that plex,sonarr,radarr,etc cant even see my shared folder which is present in my vm as /media/sf_Media. so what steps must i take so that plex, sonarr, radarr can see my folder as well as all folders within it?

sorry i am new to linux and have been using it only for the last 5 months so please bear with me. Also sorry for my english as its not my primary language

P.S. my host is windows 7 ultimate( if that’s important)

EDIT: I used sudo chmod -R 775 /media and it showed the directories in /media including sf_Media in plex but once I click sf_Media folder in plex it shows up to be empty. I tried sudo chmod -R 775 /media/sf_Media too but that didnt work out.

SO It seems my own user have access to /media/sf_Media/ and its sub directories ( because i can use ls /media/sf_Media to show the contents) but the docker containers doesn’t. Now that’s the problem.

Anything under /media is exclusive-access to your Linux username.
User plex has no access.
This is how Gnome/ Nautilus was implemented.

Change the mount point to /disks or some other non-conflicting name and all will be good.

These will help but PMS , in Docker, on Linux is a layer of complication you really don’t need.
Docker has a linux environment internally. And now you have it in a VM?

VM -> LInux -> Docker -> PMS?

Drop the docker. Run native on the Linux VM guest.

https://forums.plex.tv/tags/server-linux-tips

SInce PMS runs on MacOS and Windows, you don’t gain anything by runnning PMS in the VM. you actually lose CPU power by VM overhead

1 Like

Is /media/sf_Media a network mount (the naming convention leads me to believe it is)? If so, commands like chmod are likely to not actually work. You may be better off running Plex with your own UID (see the documentation).

I also have to question why you are running Plex inside docker inside a VM on a Windows host. It’d likely be better running outside of docker on the Ubuntu VM or just straight up on the Windows host. Is there a reason you are doing so much indirection? Though at least you aren’t running it in docker on Windows as Window’s docker implementation is insufficient to run many containers correctly (Plex included).

Thanks I changed it to /wd and it worked like a charm .Thanks a lot . Also yeah, I dropped it to linux vm but kept docker for the other services like radarr, sonarr ,etc for convenience.

I have sonarr and nzbget in docker due to how they are distributed. works great that way.

Glad you are all sorted now.

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