【发布时间】:2020-10-21 23:04:28
【问题描述】:
有效。
$ 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...
我不知道为什么它不起作用。唯一的区别是是否挂载卷。
请教我。
【问题讨论】: