Docker - Cant See Media

Im creating a docker on Synology 420+. The docker installs fine, it writes to the config folder fine, but it cant see any folders under my /media mount. Im passing in the PID/GID, and this works on other dockers fine. The account is part of the “admin” group, it has read/write to the share. Is there something Im missing? Ive read a bunch of post and I seem to be doing everything correctly. Ive tried with the official docker and the linuxserver one below.

Ive changed out PLEX_MEDIA_SERVER_USER to be my user, I also even created a “plex” user changed out PID and didnt work either.

My compose file.

version: '3'
services:
  plex:
    container_name: "plex"
    image: linuxserver/plex:latest
    ports:
      - "32400/tcp"
      - "3005/tcp"
      - "8324/tcp"
      - "32469/tcp"
      - "1900/udp"
      - "32410/udp"
      - "32412/udp"
      - "32413/udp"
      - "32414/udp"
    volumes: # config rw, the rest ro for security
      - "/volume1/docker/plex/config:/config:rw"
      - "/volume1/Media:/media:ro"
    environment:
      - PLEX_CLAIM=claim-
      - VERSION=latest
      - PGID=100 # "users" group should be 100 on Synology NAS
      - PUID=1027 # your plex user id goes here
      - TZ=America/New_York # adjust the timezone as needed
      - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      - HOME=/root
      - LANGUAGE=en_US.UTF-8
      - LANG=en_US.UTF-8
      - TERM=xterm
      - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
      - DEBIAN_FRONTEND=noninteractive
      - PLEX_DOWNLOAD=https://downloads.plex.tv/plex-media-server-new
      - PLEX_ARCH=amd64
      - PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/config/Library/Application Support
      - PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
      - PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
      - PLEX_MEDIA_SERVER_USER=abc
      - PLEX_MEDIA_SERVER_INFO_VENDOR=docker
      - PLEX_MEDIA_SERVER_INFO_DEVICE=Docker Container (LinuxServer.io)
    devices:
      - "/dev/dri/card0:/dev/dri/card0"
      - "/dev/dri/renderD128:/dev/dri/renderD128"
    privileged: true
    network_mode: "bridge"
    restart: unless-stopped

Did you create a user and is 1027 the UID of that user ?

Yes.


image

you granted user docker permission to read the “Media” share?

(asking basic questions – checklist)

Its part of admin group so doesnt it auto inherit the permissions.

Are you 100% certain the ACLs on your files are that way?

If they were, the administrators group (which is NOT root), would have access

Syno downgrades admin / administrators to regular UIDs. Only their apps recognize the privilege.

Linux does not. It requires ACLs for non-root UIDs

There is something going on where it doesnt seem like the internal docker is picking up the inherited permissions.

This is how it looks. This says the admin group has read/write access: (Plex says No)


Now if I explicitly add “dockeruser” to the share it seems to work.


Though it now seems to be working if I pass the GID as 101

Also seems to work if I add the “users” group set to read only and then pass GID 100.

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