有效。
$ docker run --rm --net=host --privileged -v $PWD:/home -e SHARED_DIRECTORY=/home itsthenetwork/nfs-server-alpine
[..]
/home <world>
Starting Mountd in the background...These
Startup successful.
它不起作用。
$ docker run --rm --net=host --privileged -e SHARED_DIRECTORY=/home itsthenetwork/nfs-server-alpine
[..]
exportfs: /home does not support NFS export
Export validation failed, exiting...
我不知道为什么它不起作用。唯一的区别是是否已装入卷。
请教我。
答案 0 :(得分:0)
自我解决
OverlayFS
OverlayFS不支持NFS导出,因此请从另一种卷装载到您的NFS容器中(希望是可用的)。
在RancherOS上,/ home,/ media和/ mnt文件系统是ext4,是不错的选择。