Docker permissions issue? Maybe
Posted: 07 Jan 2024, 05:46
I'm really knew to learning Docker and have set up a few on macOS. This is my first attempt on the NAS. I found a thread on this forum where someone was asking for help and an employee answered. I tried to follow those directions, but the second thing the employee said was navigate to /mnt/md0/docker or something like that... this doesn't exist on my NAS so I gave up and decided to write this.
TOS: 5.1.67
Model: F4-420
Docker: Whatever the one is in App Center
So, I'm trying to install/run a container that I know wont be found on Docker Hub or wherever the GUI can pull from. But I wanted to know where to put the files on the NAS to hopefully grab it via docker-compose (which I haven't even tested is installed and may need help with that if it's not).
Inside the Docker GUI:
To test and start learning, I pulled down the latest Sonarr from LinuxServer. Before running it, I stepped through the guided setup and mapped three folders.
Inside the File Manager I clicked my username on the left and created the following folder structure:
Next, I mapped two existing folders by clicking the folder icon to make sure I got the directories correct. They ended up being:
I started the container and couldn't access it via Sonarr's port 8989 (found out it gave me a random port, which worked and I fixed after)
I noticed in the real filled with files, so that directory works. But, when trying to set up my Root Folder to it appears empty and doesn't contain the real files. Just as another test, I went to the 'real' downloads folder and created a new empty directory... this directory did NOT appear in the folder in the container. So both of them are broken.
I assume this is to do with permissions? There's a setting in Sonarr for "Recycle Bin" which dumps all deleted files there instead of perma-delete and I accidently just pasted in the 'real' location to that folder and got an error stating that "Folder '/<folder I entered>/' is not writable by user 'abc'" So I think Sonarr is actually using a username of abc so how do I fix that so it uses my username (which I hope will get around the permission issues)?
In SSH, running "find ./ -type d -name sonarr" shows that ./home/archigos/ is the same as ./Volume1/User/archigos/ not sure if that helps me in any way, unless maybe I can symlink the 'real' tv and download folders inside the /home/archigos/docker/sonarr/ folder and try to set the locations to that? But that probably wouldn't help if it is a permission issue right?
Any help/suggestions would be greatly appreciated.
TOS: 5.1.67
Model: F4-420
Docker: Whatever the one is in App Center
So, I'm trying to install/run a container that I know wont be found on Docker Hub or wherever the GUI can pull from. But I wanted to know where to put the files on the NAS to hopefully grab it via docker-compose (which I haven't even tested is installed and may need help with that if it's not).
Inside the Docker GUI:
To test and start learning, I pulled down the latest Sonarr from LinuxServer. Before running it, I stepped through the guided setup and mapped three folders.
Inside the File Manager I clicked my username on the left and created the following folder structure:
Code: Select all
/<username>/docker/sonarr/config {and I mapped that to} /configCode: Select all
/Volume1/environment/Media/Video/TV -> /tvCode: Select all
/Volume1/environment/Media/Video/downloads -> /downloadsI noticed in the real
Code: Select all
/archigos/docker/sonarr/configCode: Select all
/tvI assume this is to do with permissions? There's a setting in Sonarr for "Recycle Bin" which dumps all deleted files there instead of perma-delete and I accidently just pasted in the 'real' location to that folder and got an error stating that "Folder '/<folder I entered>/' is not writable by user 'abc'" So I think Sonarr is actually using a username of abc so how do I fix that so it uses my username (which I hope will get around the permission issues)?
In SSH, running "find ./ -type d -name sonarr" shows that ./home/archigos/ is the same as ./Volume1/User/archigos/ not sure if that helps me in any way, unless maybe I can symlink the 'real' tv and download folders inside the /home/archigos/docker/sonarr/ folder and try to set the locations to that? But that probably wouldn't help if it is a permission issue right?
Any help/suggestions would be greatly appreciated.