Docker Container Permissions with Shares Across VMs

seekr

New Member
Dec 7, 2023
2
0
1
I am new to Proxmox and in the throes of the learning curve. I have an Openmediavault VM serving up my shares. Most of them are SMB because I'm on a mixed network, but the one share that I hope to use for Docker data is NFS. Both the SMB shares and the NFS share are shared with an Ubuntu Server VM where I installed Docker and Portainer. I have the SMB shares mounted in Ubuntu Server using the following commands:

Code:
//192.168.1.145/TV /TV cifs username=[username],password=[password],vers=2.0,iocharset=utf8,file_mode=0777,dir_mode=0777
//192.168.1.145/Books /Books cifs username=[username],password=[password],vers=2.0,iocharset=utf8,file_mode=0777,dir_mode=0777
//192.168.1.145/Pictures /Pictures cifs username=[username],password=[password],vers=2.0,iocharset=utf8,file_mode=0777,dir_mode=0777
//192.168.1.145/Music /Music cifs username=[username],password=[password],vers=2.0,iocharset=utf8,file_mode=0777,dir_mode=0777
//192.168.1.145/Videos /Videos cifs username=[username],password=[password],vers=2.0,iocharset=utf8,file_mode=0777,dir_mode=0777
//192.168.1.145/Movies /Movies cifs username=[username],password=[password],vers=2.0,iocharset=utf8,file_mode=0777,dir_mode=0777

I have the NFS share mounted in Ubuntu Server using:
Code:
sudo mount 192.168.1.145:/export/AppData /AppData
This is the share I'm using to store Docker container data.

When I try to create Docker containers, I'm running into permissions errors. The logs in a Plex container show issues with permissions:
Code:
[migrations] started
[migrations] no migrations found
───────────────────────────────────────
      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝
   Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    1000
User GID:    1000
───────────────────────────────────────
chown: changing ownership of '/config': Operation not permitted
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
chown: changing ownership of '/config/Library/Application Support': Operation not permitted
chown: changing ownership of '/config/Library': Operation not permitted
chown: changing ownership of '/config': Operation not permitted
Change in ownership detected, please be patient while we chown existing files
This could take some time
chown: changing ownership of '/config/Library/Application Support': Operation not permitted
chown: changing ownership of '/config/Library': Operation not permitted
chown: changing ownership of '/config': Operation not permitted
chown: changing ownership of '/config/Library': Operation not permitted
s6-rc: warning: unable to start service init-plex-chown: command exited 1

My questions, from specific to general are as follows:
1. What is the solution to my permissions issues with the Plex Docker container?
2. How can I address the permissions issues with my Docker containers?
3. Are my SMB and NFS shares between the two VMs a decent solution?
4. Am I setting myself up for headaches with two VMs?
5. For someone who wants a NAS and some containers running: Plex, jDownloader, qBittorrent, Radarr, Sonarr, Prowlarr among others, would a different solution be easier?

Thank you for the help and Merry Christmas.
 
I changed my NFS "AppData" share to SMB and my Plex container works now. I'd still be interested in the answers to questions 3 through 5 above if anyone has opinions. Thank you.