ehough / docker-nfs-server

A lightweight, robust, flexible, and containerized NFS server.
https://hub.docker.com/r/erichough/nfs-server/
GNU General Public License v3.0
669 stars 221 forks source link

Is there anyway update /etc/exports outside without restart nfs container #79

Open xiaoyao9184 opened 1 year ago

xiaoyao9184 commented 1 year ago

The /usr/sbin/exportfs command allows the root user to selectively export or unexport directories without restarting the NFS service.

But when use nfs container with bind volume, modifying /etc/exports file must not change the file inode, or docker mounted file will not update.

This is difficult to copy and replace file without change file inode in ansible unsafe_writes

Is it possible to change the /etc/exports file location, to bind by folder?

Luis97lol commented 11 months ago

I have the same problem