Using rancher-nfs in read-only


When I run the rancher-nfs infrastructure stack with the “ro” mount option, I get the following message when I try to use an existing mount point:

Expected state running but got error: Error response from daemon: chown /var/lib/rancher/volumes/rancher-nfs/test: read-only file system

I can’t figure out what is trying to change the ownership of the mount point, and why.


I finally found. The problem is that I try to mount the volume on the CWD of the container in read-only and it does not like it…