ContainX / docker-volume-netshare

Docker NFS, AWS EFS, Ceph & Samba/CIFS Volume Plugin
http://netshare.containx.io
Apache License 2.0
1.12k stars 164 forks source link

CIFS optional security flag failed #140

Open nupplaphil opened 7 years ago

nupplaphil commented 7 years ago

When I execute docker volume create -d cifs --name cifs_share -o share=cifs_share/folder -o username=user -o pass=pass I'm able to create a volume. But when I want to use it, the security flag "optional" isn't valid for cifs-mounting:

DEBU[1388] Entering Get: {cifs_share map[]}
DEBU[1388] Get: mount found for cifs_share, host directory: /var/lib/docker-volumes/netshare/cifs/cifs_share INFO[1388] Mount: cifs_share, ID: 694d74cfd07ba83ece69329108cfd32670dd428386519c2c680aa2e450550c71 INFO[1388] Mounting CIFS volume //cifs_share/folder on /var/lib/docker-volumes/netshare/cifs/cifs_share DEBU[1388] GetCreds: host=cifs_share, netrc=&{/root/.netrc [0xc82000b5f0] []} DEBU[1388] Executing: mount -t cifs -o username=user,password=****,domain=optional,sec=optional,rw //cifs_share/folder /var/lib/docker-volumes/netshare/cifs/cifs_share

2017/09/23 23:49:20 mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Even when I add -o security=ntlm, the error doesn't disappear and it again tries with sec=optional

I found this error in /var/log/kern.log:

Sep 23 21:52:47 docker kernel: [ 5487.194719] CIFS VFS: bad security option: optional