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
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:Even when I add
-o security=ntlm
, the error doesn't disappear and it again tries withsec=optional
I found this error in
/var/log/kern.log
: