docker-volume-netshare icon indicating copy to clipboard operation
docker-volume-netshare copied to clipboard

Error response from daemon: Error looking up volume plugin nfs: Plugin not found

Open science09 opened this issue 7 years ago • 4 comments

Ubuntu 14.04.4 LTS dockker: 1.9.1 docker-volume-netshare_0.33_amd64.deb

docker run -it --volume-driver=nfs -v 192.168.33.11/opt/nfs:/mnt ubuntu /bin/bash Error response from daemon: Error looking up volume plugin nfs: Plugin not found

science09 avatar Apr 13 '17 02:04 science09

Fedora Atomic docker version: 1.12.6 docker-volume-netshare_0.33_linux_amd64

docker volume create -d nfs --name nfstest -o share=172.17.0.12:/data

same type of error: Error response from daemon: create nfstest: create nfstest: Error looking up volume plugin nfs: plugin not found

wdouglascampbell avatar Apr 14 '17 06:04 wdouglascampbell

Have to create a /etc/docker/plugins/nfs.spec, and echo "unix:///var/run/docker/plugins/.sock" in the file (the name of the socket is not that good :x). Without it, you will have a "plugin not found" for ever.

RemyCH avatar Apr 20 '17 14:04 RemyCH

echo "unix:///var/run/docker/plugins/.sock" -> /etc/docker/plugins/nfs.spec Not sure it was clear. Restart docker daemon and try again?

RemyCH avatar Apr 20 '17 14:04 RemyCH

May have to set option --basedir and --version to make it work too.. here is the full command i did use after creating the nfs.spec and restart daemon : sudo docker-volume-netshare nfs --basedir /var/lib/docker/volumes/netshare --version 3 &

Works now.

RemyCH avatar Apr 20 '17 15:04 RemyCH