Sign inSign up

alexs77/docker-nfs-server

By alexs77

•Updated over 8 years ago

NFS Server

Image
0

961

alexs77/docker-nfs-server repository overview

⁠Docker NFS Server

⁠Usage

Mount the volumes to be exported on '/exports' and run a privileged container passing a list of allowed ip addresses

# Default NFS_OPTS
docker run -d --name nfs-server --privileged \
    -v /path1:/exports/dir \
    -v my-vol1:/exports/otherdir \
    alexs77/nfs-server \
    172.17.2.172 10.0.0.0/8 192.168.0.0/24 …

# Custom NFS_OPTS
docker run -d --name nfs-server --privileged \
    -v /path1:/exports/dir \
    -v my-vol1:/exports/otherdir \
    -e NFS_OPTS='rw,async' \
    alexs77/nfs-server \
    172.17.2.172 10.0.0.0/8 192.168.0.0/24 …

Test with

docker run -d --name nfs-client --privileged --link nfs:nfs cpuguy83/nfs-client /path/on/nfs/server:/path/on/client

Environment Variables

ENV NFS_OPTS rw,sync,no_subtree_check,no_root_squash

⁠More Info

See https://container42.com/2014/03/29/docker-quicktip-4-remote-volumes/⁠

⁠Credits

Tag summary

Content type

Image

Digest

Size

83.4 MB

Last updated

over 8 years ago

docker pull alexs77/docker-nfs-server