I'm trying to run a Docker container called Unmanic. I want it do be able to access a files from a share on my NAS.
I got Docker Desktop and WSL2 running on pc and the container is up. I can access the web insterface etc.
I added an entry on WSL Ubuntu machine in /etc/fstab like this:
//192.168.20.15/Media/share /media/share cifs credentials=/home/manager/.smbcred,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0If I go to /media/share I can see all of the files and can edit/add stuff.
This is how my Docker compose file is configured:
---version: '2.4'services: unmanic: container_name: unmanic image: josh5/unmanic:latest ports: - 8888:8888 environment: - PUID=1000 - PGID=1000 - NVIDIA_VISIBLE_DEVICES=all volumes: - ./config:/config - /media/share/unmanictest/:/library - ./encodecache/:/tmp/unmanicIf I open bash session in the Unmanic container the /library directory is empty.
# cd library# ls# ls -lahtotal 8.0Kdrwxr-xr-x 2 root root 4.0K Jul 17 18:07 .drwxr-xr-x 1 root root 4.0K Jul 17 18:07 ..Any ideas how can I fix this?
What I tried:
Rebooting everything.
Running docker container withou specifying PUID and PGID.
Tried mounting
/media/share/unmanictest/to newly created folder inside docker container.