Open lazycodeninja opened 7 years ago
I don't think there's much that can be done there. Docker mounts the ~/Dev/temp
directory read-only inside the container; the nfsmount
mountpoint will be read-only, but the mount that's mounted there won't be affected. Other than somehow unmounting the NFS share and remounting it read-only, I don't think that'll be possible to change.
ping @cpuguy83 @kolyshkin any ideas? Don't think this will be possible to change
I've mounted a read-only volume that contains an NFS sub-directory in the host. Creating a file on the read-only volume is only prevented for the volume if the path is in the local file system, not for paths in the NFS sub-directory.
Expected behavior
The file isn't created and
<command>: Read-only file system
error, e.g.touch: /nas/test2: Read-only file system
Actual behavior
The file is created with no error.
Steps to reproduce the behavior
You'll need to create and mount an NFS share to test this, then use a basic Docker container (like Alpine) to write a file to it:
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)