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 needs to be installed on Linux systems in order to properly mount NFS mounts.
sudo apt-get install -y nfs-common
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 126.96.36.199:/mountpoint /target/mount
Binaries are available through GitHub releases. You can download the appropriate binary, package and version from the Releases page
The method below will install the sysvinit and /etc/default options that can be overwritten during service start.
$ wget https://github.com/ContainX/docker-volume-netshare/releases/download/v0.35/docker-volume-netshare_0.35_amd64.deb $ sudo dpkg -i docker-volume-netshare_0.35_amd64.deb
service docker-volume-netshare start
Add Depcon and its package dependencies to your go
$ go get github.com/ContainX/docker-volume-netshare $ go build
get has completed, you should find your new
docker-volume-netshare executable sitting inside the
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