# Plex Docker container, getting permissions error

**URL:** <https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500>\
**Category:** Plex Media Server\
**Tags:** server-docker\
**Created:** [November 30, 2024, 11:17pm UTC](https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500 "2024-11-30T23:17:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brodieman37](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/brodieman37/32/271974_2.png) [@Brodieman37](https://forums.plex.tv/u/Brodieman37)\
**Post date:** [November 30, 2024, 11:17pm UTC](https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500/1 "2024-11-30T23:17:47Z")

</div>

I am trying to create a Docker container for Plex using the official container. I have a bind mount for /config to the host. I am getting

> libc++abi: terminating with uncaught exception of type boost::filesystem::filesystem\_error: boost::filesystem::create\_directories: Permission denied [system:13]: “/config/Library/Application Support/Plex Media Server/Cache”, “/config/Library/Application Support/Plex Media Server/Cache”

Which obvioulsy is saying the container does not have permissions but I DO have permissions if I look on the NAS.

I am at a loss, thanks for any help!

Edit: When I start the container, it creates the folder structure “\config\Library\Application Support” but does not create the Cache folder, which goes along with the error. But I do not know why, it clearly has permissions.

---

<div class="post-metadata">

**Author:** ![Brodieman37](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/brodieman37/32/271974_2.png) [@Brodieman37](https://forums.plex.tv/u/Brodieman37)\
**Post date:** [November 30, 2024, 11:25pm UTC](https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500/2 "2024-11-30T23:25:04Z")

</div>

All of a sudden it started working, I did not do anything other than stop and start the container a couple of times to check a few things. Weird.

---

<div class="post-metadata">

**Author:** ![Brodieman37](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/brodieman37/32/271974_2.png) [@Brodieman37](https://forums.plex.tv/u/Brodieman37)\
**Post date:** [November 30, 2024, 11:34pm UTC](https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500/3 "2024-11-30T23:34:41Z")

</div>

I do have another issue now. I did a bind mount for the media to /media. When I am creating a library on the web /media shows empty. However, if I connect to the container via a console, I can browse /media and it shows files.

Clearly I am doing something wrong here, I am not sure what

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [November 30, 2024, 11:38pm UTC](https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500/4 "2024-11-30T23:38:46Z")

</div>

Its a permissions issue. Why are you adding docker as a complexity layer? Just run it on the OS natively, you will avoid soo many issues.

---

<div class="post-metadata">

**Author:** ![Brodieman37](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/brodieman37/32/271974_2.png) [@Brodieman37](https://forums.plex.tv/u/Brodieman37)\
**Post date:** [November 30, 2024, 11:44pm UTC](https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500/5 "2024-11-30T23:44:14Z")

</div>

Terramaster is HORRIBLE with this apps. GOD AWFUL and then some. The OS often has to be wiped and redone, it’s easy to lose app data and you cannot redirect it that I know of.

Doing it in a Docker allows me to redirect the configs.

If it’s a permissions issue, why did it start working without a change?

Also, I just added a second bind mount /media/movies and I can see the moves then but if I do /media I cannot see the folders under media.

It all sounds like permissions issues but there are no permissions issues I can find

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [February 28, 2025, 11:44pm UTC](https://forums.plex.tv/t/plex-docker-container-getting-permissions-error/897500/6 "2025-02-28T23:44:50Z")

</div>

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