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

Unable to access Windows 10 share

Open trajano opened this issue 7 years ago • 2 comments
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.

trajano avatar Jan 29 '18 06:01 trajano

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.

trajano avatar Jan 29 '18 06:01 trajano

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.

trajano avatar Jan 29 '18 12:01 trajano