To fix the file ownership and permissions for my Dockers I do the following:
chown -cR nobody:users /mnt/user/appdata
chmod -cR ug+rwX,o-rwx /mnt/user/appdata
I set the following settings in each of my dockers to fix ownership and permission problems:
PUID = 99
PGID = 100
UMASK = 000
PUID of 99 equates to "nobody", PGID of 100 equates to "users", and UMASK of 000 allows for full access.
To fix the ownership and permissions of my array I do the following:
chown -cR nobody:users /mnt/disk[0-9]*
chmod -cR ug+rwX,o-rwx /mnt/disk[0-9]*
To fix the file ownership and permissions on my entire server I do the following:
chown -cR nobody:users /mnt/user/appdata /mnt/disk[0-9]*
chmod -cR ug+rwX,o-rwx /mnt/user/appdata /mnt/disk[0-9]*
You do not have stop your Dockers during the process of fixing the ownership and permissions of the array or the entire server.