I didn't create a new dedicated user specifically for docker. I used the only ordinary regular non-privileged user on the system for this. This user is not restricted to only dockers.
This user came first, docker came along later, much later. My OMV system is five years old, docker came along about three years ago. I have not added a new user to my system since the day it was created on OMV 2.x.
File ownership conflicts with dockers don't happen here for me.
At this time I can only dream of achieving "file ownership conflicts with dockers don't happen here for me"! I hope you can help me get there.
Environment:
I created a cifs volume via Portainer that maps to a WS2016 share and is mounted at /var/lib/docker/volumes/Movies/_data on the host.
I created a primary user via the OMV GUI as you recommended, adding it to the groups 'user', 'docker' and 'ssh'.
The UID/GUID for the primary user is 1000/100.
I created the container with UID & GID set to 1000 & 100 and included the above volume.
Behavior:
From the application running in the container, I don't have write access to the volume. (I get the "folder is not writable by user abc" error).
From the CLI within the container, I see the volume is owned by root and is 755.
From the CLI on OMV, the volume also shows as owned by root and 755.
gderf I've read a couple of your other posts where you were helping with the same error I'm seeing and I think you mentioned that the permissions outside the container were often the culprit. Any thoughts on this one?
Thanks.