docker-volume-netshare
docker-volume-netshare copied to clipboard
NFS Problem on docker 1.11.2
OS: Boot2Docker 1.12.3 Docker: 1.12.3
I downloaded the binari:
sudo wget -O /usr/local/bin/docker-volume-netshare https://github.com/ContainX/docker-volume-netshare/releases/download/v0.32/docker-volume-netshare_0.32_linux_amd64-bin
sudo chmod a+x /usr/local/bin/docker-volume-netshare
sudo nohup docker-volume-netshare nfs &
If I start without nohup it stock at this:
INFO[0000] == docker-volume-netshare :: Version: 0.32 - Built: 2016-10-10T23:03:47-07:00 ==
INFO[0000] Starting NFS Version 4 :: options: ''
Create vol:
docker volume create -d nfs --name myvol -o share=192.168.99.20:/nfsshare
docker run -it --rm -v myvol:/data ubuntu bash
I tryd this too:
sudo nohup docker-volume-netshare --verbose --version=4 --options="defaults,rw,hard,nolock" nfs &
ERROR:
time="2016-11-05T10:45:23Z" level=info msg="Mounting NFS volume 192.168.99.20:/nfsshare on /var/lib/docker-volumes/netshare/nfs/myvol2"
time="2016-11-05T10:45:23Z" level=debug msg="Mounting with NFSv4 - src: 192.168.99.20:/nfsshare, dest: /var/lib/docker-volumes/netshare/nfs/myvol2"
time="2016-11-05T10:45:23Z" level=debug msg="exec: mount -v -t nfs4 -o defaults,rw,hard,nolock 192.168.99.20:/nfsshare /var/lib/docker-volumes/netshare/nfs/myvol2\n"
2016/11/05 10:45:23 mount: mounting 192.168.99.20:/nfsshare on /var/lib/docker-volumes/netshare/nfs/myvol2 failed: Invalid argument
time="2016-11-05T10:45:23Z" level=debug msg="Entering Unmount: {myvol2 24f687a57b5d17420dbe26fe035a414cdc1934160836ad7e1739db7ac4167d19}"
time="2016-11-05T10:45:23Z" level=info msg="Unmounting volume name myvol2 from /var/lib/docker-volumes/netshare/nfs/myvol2"
2016/11/05 10:45:23 umount: can't unmount /var/lib/docker-volumes/netshare/nfs/myvol2: Invalid argument
time="2016-11-05T10:45:23Z" level=error msg="Error unmounting volume from host: exit status 1"
i face kind of the same issue
2016/11/26 11:45:49 mount.nfs4: Connection timed out
time="2016-11-26T11:45:49+08:00" level=info msg="Unmounting volume name 192.168.1.2/home/indexes/nhit from /var/lib/docker-volumes/netshare/nfs/192.168.1.2/home/indexes/nhit"
2016/11/26 11:45:49 umount: /var/lib/docker-volumes/netshare/nfs/192.168.1.2/home/indexes/nhit: not mounted
time="2016-11-26T11:45:49+08:00" level=error msg="Error unmounting volume from host: exit status 32"
Docker version 1.12.3, build 6b644ec
I also am getting this issue with connection timed out in the same server or across private networks.
vagrant@ub-02:~$ sudo docker volume create -d nfs --name myvol -o share=ub-02:/nfsshare
vagrant@ub-02:~$ sudo docker run -it -v myvol:/nfsdata ubuntu bash
INFO[0756] Mounting NFS volume ub-02:/nfsshare on /var/lib/docker-volumes/netshare/nfs/myvol
2017/03/29 18:43:11 mount.nfs4: Connection timed out
docker: Error response from daemon: error while mounting volume '/var/lib/docker-volumes/netshare/nfs/myvol': VolumeDriver.Mount: exit status 32.
@ivandir what are the DEBUG logs for docker-volume-netshare
? Try running it with --verbose
.
I've also seen exit status 32
, and it was due to incorrect flags being given to mount
. DEBUG
logs will show the mount
command that was attempted and any error with it, I think.