Getting Started


Netshare is a docker volume plugin which runs as a service on linux. It must run on the same host as the Docker daemon since it handles mounting remote file systems and plugs into the local Docker daemon.

NFS Prerequisites on Linux

NFS needs to be installed on Linux systems in order to properly mount NFS mounts.

  • For Ubuntu/Debian: sudo apt-get install -y nfs-common
  • For RHEL/CentOS: sudo yum install -y nfs-utils

It is recommend to try mounting an NFS volume to eliminate any configuration issues prior to running the plugin:

sudo mount -t nfs4 /target/mount


Binary Installation

Binaries are available through GitHub releases. You can download the appropriate binary, package and version from the Releases page

On Ubuntu / Debian

The method below will install the sysvinit and /etc/default options that can be overwritten during service start.

  1. Install the Package
$ wget
$ sudo dpkg -i docker-volume-netshare_0.35_amd64.deb
  1. Modify the startup options in /etc/default/docker-volume-netshare
  2. Start the service service docker-volume-netshare start

Building Source


  • GOLANG 1.5+
  • Vendor support enabled. You MUST add env variable GO15VENDOREXPERIMENT=1 to enable

Add Depcon and its package dependencies to your go src directory

$ go get
$ go build

Once the get has completed, you should find your new docker-volume-netshare executable sitting inside the $GOPATH/bin/


Depending on how you installed configuration can vary. If your using your own launch scripts then you can simply launch netshare into the background along with the desired arguments / flags.

To get an idea of the possible flags or arguments you can print the usage:

$ docker-volume-netshare -h

On Ubuntu/Debian installs via the deb package you can set your options in /etc/default/docker-volume-netshare