docker-volumes-nfs

command module
v0.0.0-...-1ff2bc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2016 License: MIT Imports: 7 Imported by: 0

README

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 which contains the plugin binary.

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

To use the plugin when mounting 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

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

Build and run in Boot2Docker qemu VM

make iso will build an experimental boot2docker ISO which will auto-start the nfs volume-plugin.

If you're on Linux, you can run it in Qemu-kvm using make run.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL