Skip to content

ioggstream/docker-volumes-nfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker volume nfs mounter

An example of the Docker volume extension api

Docker volume extension that NFS mounts a remote FS into your container

Usage

make build to build the container

make run to run the volume plugin in a container, listening to the socket in the default /usr/share/docker/plugins/ dir.

To mount an NFS export nfs://127.0.0.1:/data, run:

    docker run --rm -it --volume-driver=nfs -v 127.0.0.1/data:/no busybox ls -la

To mount a device under dev, eg /dev/sdc, run:

    docker run --rm -it --volume-driver=nfs -v dev/sdc:/no busybox ls -la /no

Note: because of the way docker parses colons, you need to omit them from the NFS share.

License

MIT

About

Docker volume plugin for mounting nfs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 82.3%
  • Makefile 17.7%