While I haven’t set sonarr up with a NAS, I do have it running in a docker container. If you’re using the one on the Github page (linuxserver/sonarr), you need to specify the GID and UID in the docker container’s environment variables.
Before trying the following, it might also help to double check the file paths and ensure they are correct by navigating to them from docker’s interactive terminal (docker exec $container-id -it /bin/bash) and listing all the files.
You need to find the user and group id of the user running docker.
This can be done with id <dockeruser> and should return a string similar to this uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup).
You will need to take the values for UID and GID and specify them in the docker container with PUID=UID and PGID=GID.
Here’s an example of my docker-compose.yml for sonarr.
sonarr: image: linuxserver/sonarr:develop environment: PGID: '20' PUID: '501' stdin_open: true volumes: - ./sonarr:/config - ./media/downloads:/downloads - ./media/television:/television tty: true ports: - *****:***** labels: hostname: sonarr-server container_name: sonarr-server restart: always
For further reference, see this link.
https://hub.docker.com/r/linuxserver/sonarr/