Hey there,
I might just be a bit confused, but it seems to me that the plugin assumes that the remote directory on the NFS server has to be created before hand, am I right?
$ /usr/local/bin/docker-1.11.2 volume create --name 127.0.0.1:/srv/nfs/test/ --driver=nfs
127.0.0.1:/srv/nfs/test/
Daemon output:
time="2016-07-15T10:44:32Z" level=debug msg="Entering Get: {127.0.0.1:/srv/nfs/test/ map[]}"
time="2016-07-15T10:44:32Z" level=debug msg="Entering Create: name: 127.0.0.1:/srv/nfs/test/, options map[]"
time="2016-07-15T10:44:32Z" level=debug msg="Create volume -> name: 127.0.0.1:/srv/nfs/test/, map[]"
time="2016-07-15T10:44:32Z" level=debug msg="Host path for 127.0.0.1:/srv/nfs/test/ is at /mnt/nfs/127.0.0.1:/srv/nfs/test"
When I mount it:
$ docker-1.11.2 run -ti --rm --volume-driver=nfs -v 127.0.0.1/srv/nfs/test/:/test/ ubuntu bash
docker-1.11.2: Error response from daemon: VolumeDriver.Mount: exit status 32.
Output:
time="2016-07-15T10:46:19Z" level=debug msg="Entering Get: {127.0.0.1/srv/nfs/test/ map[]}"
time="2016-07-15T10:46:19Z" level=debug msg="Entering Create: name: 127.0.0.1/srv/nfs/test/, options map[]"
time="2016-07-15T10:46:19Z" level=debug msg="Create volume -> name: 127.0.0.1/srv/nfs/test/, map[]"
time="2016-07-15T10:46:19Z" level=debug msg="Host path for 127.0.0.1/srv/nfs/test/ is at /mnt/nfs/127.0.0.1/srv/nfs/test"
time="2016-07-15T10:46:19Z" level=debug msg="Entering Mount: {127.0.0.1/srv/nfs/test/ map[]}"
time="2016-07-15T10:46:19Z" level=info msg="Mounting NFS volume 127.0.0.1:/srv/nfs/test/ on /mnt/nfs/127.0.0.1/srv/nfs/test"
time="2016-07-15T10:46:19Z" level=debug msg="Mounting with NFSv4 - src: 127.0.0.1:/srv/nfs/test/, dest: /mnt/nfs/127.0.0.1/srv/nfs/test"
time="2016-07-15T10:46:19Z" level=debug msg="exec: mount -v -t nfs4 127.0.0.1:/srv/nfs/test/ /mnt/nfs/127.0.0.1/srv/nfs/test\n"
2016/07/15 10:46:20 mount.nfs4: mount(2): No such file or directory
mount.nfs4: trying 127.0.0.1 prog 100003 vers 3 prot TCP port 2049
mount.nfs4: trying 127.0.0.1 prog 100005 vers 3 prot UDP port 42499
mount.nfs4: mount(2): No such file or directory
mount.nfs4: mounting 127.0.0.1:/srv/nfs/test/ failed, reason given by server: No such file or directory
mount.nfs4: timeout set for Fri Jul 15 10:48:19 2016
mount.nfs4: trying text-based options 'vers=4.2,addr=127.0.0.1,clientaddr=127.0.0.1'
mount.nfs4: trying text-based options 'addr=127.0.0.1'
mount.nfs4: prog 100003, trying vers=3, prot=6
mount.nfs4: prog 100005, trying vers=3, prot=17
time="2016-07-15T10:46:20Z" level=debug msg="Entering Unmount: {127.0.0.1/srv/nfs/test/ map[]}"
time="2016-07-15T10:46:20Z" level=info msg="Unmounting volume name 127.0.0.1/srv/nfs/test/ from /mnt/nfs/127.0.0.1/srv/nfs/test"
2016/07/15 10:46:20 umount: /mnt/nfs/127.0.0.1/srv/nfs/test: not mounted
But when I create it myself mkdir /srv/nfs/test
, it works:
time="2016-07-15T10:47:13Z" level=debug msg="Host path for 127.0.0.1/srv/nfs/test/ is at /mnt/nfs/127.0.0.1/srv/nfs/test"
time="2016-07-15T10:47:14Z" level=debug msg="Entering Mount: {127.0.0.1/srv/nfs/test/ map[]}"
time="2016-07-15T10:47:14Z" level=info msg="Mounting NFS volume 127.0.0.1:/srv/nfs/test/ on /mnt/nfs/127.0.0.1/srv/nfs/test"
time="2016-07-15T10:47:14Z" level=debug msg="Mounting with NFSv4 - src: 127.0.0.1:/srv/nfs/test/, dest: /mnt/nfs/127.0.0.1/srv/nfs/test"
time="2016-07-15T10:47:14Z" level=debug msg="exec: mount -v -t nfs4 127.0.0.1:/srv/nfs/test/ /mnt/nfs/127.0.0.1/srv/nfs/test\n"
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4