# Plex in Rpi4 using docker - can't add media

**URL:** <https://forums.plex.tv/t/plex-in-rpi4-using-docker-cant-add-media/773453>\
**Category:** Plex Media Server\
**Tags:** server-linux, server-docker, server-linux-arm\
**Created:** [January 28, 2022, 9:17pm UTC](https://forums.plex.tv/t/plex-in-rpi4-using-docker-cant-add-media/773453 "2022-01-28T21:17:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![B0rrasca](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@B0rrasca](https://forums.plex.tv/u/B0rrasca)\
**Post date:** [January 28, 2022, 9:17pm UTC](https://forums.plex.tv/t/plex-in-rpi4-using-docker-cant-add-media/773453/1 "2022-01-28T21:17:57Z")

</div>

Server Version#: 1.25.3.5409

Let me preface this by saying that I am a total noob at all of this. I searched for similar questions, but did not find anything relevant.

I installed plex to my Raspberry Pi 4 using docker and docker-compose. Things went smoothly, and I am able to access the server. However, when I try to add a folder to my library, I am unable to see the folder that I created in docker-compose through the plex server. Moreover, when I try to copy media to the folder, I get a permission denied error. I suspect this may have something to do with the location I assigned for the media folder. What I find confusing is that the plex server is not able to see the folder that I created.

Below are my docker-compose settings:

```auto
  plex:
    image: lscr.io/linuxserver/plex
    container_name: plex
    restart: unless-stopped
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - VERSION=docker
    volumes:
      - /home/pi/Plex/config:/config
      - /home/pi/Plex/transcode:/transcode
      - /home/pi/Plex/media:/all_media

```

Questions:

1. Should I have chosen a different location for the volumes? I have a large 128GB card, and I don’t expect to have more than a handful of movies at a time, which is why I chose this location
2. If this is not a good location, what would be a better one?
3. How can I get plex to see the folders in my Pi?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [January 28, 2022, 10:59pm UTC](https://forums.plex.tv/t/plex-in-rpi4-using-docker-cant-add-media/773453/2 "2022-01-28T22:59:23Z")

</div>

UID/GID 1000:1000 (as stated in the config) minimally need read permission to:

```auto
/home
/home/pi
/home/pi/Plex/media

```

Given Plex works, it seems the problem exists from `/home/pi/Plex/media` and below

Directory permissions 755, file permissions 644 will guarantee Plex can read the media.

---

<div class="post-metadata">

**Author:** ![B0rrasca](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@B0rrasca](https://forums.plex.tv/u/B0rrasca)\
**Post date:** [January 29, 2022, 3:26pm UTC](https://forums.plex.tv/t/plex-in-rpi4-using-docker-cant-add-media/773453/3 "2022-01-29T15:26:28Z")

</div>

Thank you, that seems to have done the trick!

---

<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:** [April 29, 2022, 3:26pm UTC](https://forums.plex.tv/t/plex-in-rpi4-using-docker-cant-add-media/773453/4 "2022-04-29T15:26:53Z")

</div>

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