Hi folks, question regarding the behaviour of the stuff in the subject. In the past we used a glusterfs mount to give apps some static storage, this was done by mounting the glusterfs brick on all nodes, and just using the “volumes” block in the docker config to mount it (no host volumes). This worked fine. File permissions and ownership were as expected (the docker re-mapped uid/gid).
Recently we changed this to using sets of NFS mounts that are defined as host volumes, and we replaced the original ‘volumes’ configuration with a volume_mount one. This also works great, however, it seems dockers userns remapping isn’t applied, for some reason. Files created on the mounted host volume are owned by the uid/gid that the app in the container runs as (so often this turns out root:root).
I couldn’t find anything in the documentation so I’m wondering if this is the expected behaviour?