I’m gonna leave out PMS version and stuff because I’m pretty sure it’s not necessary here.
So I’m running PMS in docker on my Synology NAS. I used the following ‘docker run’ command from cli to create the container and it works flawlessly.
docker run
-d
–name Plex-Media-Server
–restart=always
–network=host
-e TZ=“Europe/Berlin”
-e LANG=“de_DE.UTF-8”
-e PLEX_UID=297536
-e PLEX_GID=297536
-h DockerPlex
-v /volume1/docker/Plex-Media-Server/AppData:“/config/Library/Application Support”
-v /volume1/docker/Plex-Media-Server/AppData/tmp:/tmp
-v /volume1/docker/Plex-Media-Server/AppData/tmp:/transcode
-v /volume1/docker/Plex-Media-Server/Medien:/Medien
–device=/dev/dri:/dev/dri
plexinc/pms-docker:latest
I recently discovered Portainer which I now use as a docker application to administrate all my containers. So I converted the ‘docker run’ command above to the compose syntax. The result is this:
version: “3.8”
services:
plex-media-server:
image: plexinc/pms-docker:latest
container_name: Plex-Media-Server
network_mode: “host”
environment:
- TZ=Europe/Berlin
- LANG=de_DE.UTF-8
- PLEX_UID=297536
- PLEX_GID=297536
volumes:
- /volume1/docker/Plex-Media-Server/AppData:“/config/Library/Application Support”
- /volume1/docker/Plex-Media-Server/AppData/tmp:/tmp
- /volume1/docker/Plex-Media-Server/AppData/tmp:/transcode
- /volume1/docker/Plex-Media-Server/Medien:/Medien
hostname: DockerPlex
devices:
- /dev/dri:/dev/dri
restart: always
Now when I try to deploy this stack it gives me the following error message:
Failure
failed to deploy a stack: Creating Plex-Media-Server … e[1Ae[2K Creating Plex-Media-Server … e[31merrore[0m e[1B ERROR: for Plex-Media-Server Cannot create container for service plex-media-server: invalid volume specification: ‘/volume1/docker/Plex-Media-Server/AppData:“/config/Library/Application Support”:rw’: invalid mount config for type “bind”: invalid mount path: ‘“/config/Library/Application Support”’ mount path must be absolute ERROR: for plex-media-server Cannot create container for service plex-media-server: invalid volume specification: ‘/volume1/docker/Plex-Media-Server/AppData:“/config/Library/Application Support”:rw’: invalid mount config for type “bind”: invalid mount path: ‘“/config/Library/Application Support”’ mount path must be absolute Encountered errors while bringing up the project. : exit status 1
I’m not too familiar with docker but something is wrong with the first mapping in the ‘volumes’ part. But I don’t know what to do to fix this problem. It’s strange that it works just fine with the above ‘docker run’ command but not this way.
Can anybody help me to fix this problem please?