docker-volume-netshare
docker-volume-netshare copied to clipboard
Unable to access Windows 10 share
trafficstars
When accessing a Windows 10 share I get
mount error(112): Host is down
I think what's missing is the capability of passing in the mount.cifs option vers=3.02 at least it is not documented.
Here's an example of mounting from the command line
root@manager1:~# mount -t cifs //noriko/s /mnt/ -o username=vagrant,password=vagrant
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@manager1:~# mount -t cifs //noriko/s /mnt/ -o username=vagrant,password=vagrant,vers=3.02
root@manager1:~#
The one with the version number works, but I do not know how to pass that value in.
I found it https://github.com/ContainX/docker-volume-netshare/blob/3b432b74a4be34781aaebeba878128f8b392dfa4/netshare/drivers/cifs.go#L22
C:\Users\trajano\.docker>docker volume create -d cifs --name noriko/s --opt cifsopts=vers=3.02
noriko/s
C:\Users\trajano\.docker>docker run -it -v noriko/s:/mount ubuntu /bin/bash
root@6cc5455266d3:/# ls -la
Keeping this open just in case it is not documented, because I couldn't find this information.