https://github.com/gritrana/volumes/tree/master/nfs/nfs-image
230
default mount path is "/exports"(默认挂载路径是"/exports")
docker run \
--rm \
-it \
--privileged \
-v ~/nfsdata:/exports \
xujintao/nfs:1.0-centos
customized mount path(自定义挂载路径可以这样)
docker run \
--rm \
-it \
--privileged \
-v ~/nfsdata:/exports \
xujintao/nfs:1.0-centos \
/exports/mysql/master \
/exports/mysql/slave0 \
/exports/mysql/slave1
If the ip of container in which nfs runs is 172.17.0.2, you can get nfs export/mounting info like this: 如果你运行nfs的容器ip是172.17.0.2,那么可以这样查询nfs导出及挂载信息
showmount -e 172.17.0.2
showmount -a 172.17.0.2
Content type
Image
Digest
Size
89.4 MB
Last updated
about 8 years ago
docker pull xujintao/nfs:1.1-centos