Open jamiejackson opened 6 years ago
docker-volume-netshare
The documentation refers to a much older version (v0.18). If the documentation won't stay up to date, it should really mention to refer to https://github.com/ContainX/docker-volume-netshare/releases for updates.
I used this binary instead: https://github.com/ContainX/docker-volume-netshare/releases/download/v0.34/docker-volume-netshare_0.34_linux_amd64-bin
docker volume create
Requirements
cifs
mediashare
localhost
private
user1
user1pass
docker volume create \
-d cifs \
--name mediashare \
--opt share=localhost/private \
--opt username=user1 \
--opt password=user1pass \
--opt security=ntlm \
--opt cifsopts=vers=3.0
HIi @jamiejackson , i tried to do the same but i am getting this error. 'Error looking up volume plugin cifs: legacy plugin: plugin not found'. i did downloaded .34v of this one
@ramizrshaik, I'm not sure what step you're on.
First, what OS/version and Docker version are you running?
Next: Please run the following--verbatim for now--don't change any of the values to your own.
First terminal:
sudo pkill -f docker-volume-netshare # kill any extant processes
cd /tmp
wget -O docker-volume-netshare https://github.com/ContainX/docker-volume-netshare/releases/download/v0.34/docker-volume-netshare_0.34_linux_amd64-bin
chmod a+x ./docker-volume-netshare
sudo ./docker-volume-netshare cifs --verbose=true
Second terminal:
docker volume create \
-d cifs \
--name mediashare \
--opt share=localhost/private \
--opt username=user1 \
--opt password=user1pass \
--opt security=ntlm \
--opt cifsopts=vers=3.0
docker run -it --rm -v mediashare:/tmp/mediashare -d --name samba-client alpine ash
Then paste in the contents of your terminals.
@jamiejackson: I run into the same problem! Here is my log:
DEBU[0535] Executing: mount -t cifs -o vers=3.0,username='administrator',password='****',sec=ntlm,rw //192.168.21.14/test$ /var/lib/docker-volumes/netshare/cifs/mediashare
2018/05/14 14:18:02 mount error(95): Operation not supported Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
docker-volume-netshare: Version: 0.35 - Built: 2018-01-27T22:43:03-08:00 docker: Docker version 18.03.1-ce, build 9ee9f40
Edit: I solved the problem by removing the "cifsopts=vers=3.0" option
I struggled all day yesterday with this. Could you help me come up with a
docker volume create
command that satisfies the following requirements?Requirements
cifs
user1
user1pass
localhost
private
mediashare
Equivalent Plain Mount
For what it's worth, here's the equivalent mount command (note the
vers=3.0
option--that was necessary):Failed Attempt
One of a hundred failed attempts:
Commands
Output from
docker run
Debug output
Software Versions
Version: 0.18 - Built: 2016-05-27T20:14:07-07:00
Docker version 17.10.0-ce, build f4ffd25
Note to self: Samba server was created with: