Sign inSign up

xujintao/nfs

By xujintao

•Updated about 8 years ago

https://github.com/gritrana/volumes/tree/master/nfs/nfs-image

Image
0

230

xujintao/nfs repository overview

⁠Usage

⁠step 1

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
⁠step 2

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

Tag summary

Content type

Image

Digest

Size

89.4 MB

Last updated

about 8 years ago

docker pull xujintao/nfs:1.1-centos