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

CIFS option on doesn't seem to be working on 0.16

Open joaocc opened this issue 9 years ago • 3 comments

Hi, I am trying to get netshare to work on docker 1.11.1 on ubuntu 14.04.4. I have tried https://github.com/gondor/docker-volume-netshare/issues/30 and https://github.com/gondor/docker-volume-netshare/issues/21#issuecomment-206388228.

1. With credentials provided at plugin start

$ sudo docker-volume-netshare cifs -u uuu -p ppp --verbose=true
WARN[0000] Error: open /home/admin/.netrc: no such file or directory
INFO[0000] == docker-volume-netshare :: Version: 0.16 - Built: 2016-04-09T14:53:25-07:00 ==
INFO[0000] Starting CIFS :: user: uuu, pass: ***, domain: , secutity: , netrc: /home/admin
$ sudo docker volume create -d cifs --name my.server.com/sharename

$ sudo docker run -it -v my.server.com/sharename:/mnt --rm  ubuntu /bin/bash
docker: Error response from daemon: chown /var/lib/docker-volumes/my.server.com/sharename: permission denied.
See 'docker run --help'.

while, on the plugin side, this was added

INFO[0049] Mount: my.server.com/sharename, map[]
INFO[0049] Mounting CIFS volume //my.server.com/sharename on /var/lib/docker-volumes/netshare/cifs/my.server.com/sharename
DEBU[0049] GetCreds: host=my.server.com, netrc=<nil>
DEBU[0049] Executing: mount -t cifs -o username=uuu,password=****,rw //my.server.com/sharename /var/lib/docker-volumes/netshare/cifs/my.server.com/sharename

INFO[0049] Unmounting volume //my.server.com/sharename from /var/lib/docker/volumes/netshare/cifs/my.server.com/sharename
INFO[0049] Removing un-managed volume

Any hints?

joaocc avatar Apr 29 '16 19:04 joaocc

Have you tried simulating the execution the plugin is doing by mounting it manually?

ex:

$ mount -t cifs -o username=uuu,password=****,rw //my.server.com/sharename /local/path

gondor avatar May 03 '16 06:05 gondor

Yes. Mounting manually in the host worked fine.

joaocc avatar May 03 '16 10:05 joaocc

@joaocc Please see my added 30#comment.

AFAICT a possible docker bug in connection with cifs server configuration.

holgerreif avatar May 03 '16 13:05 holgerreif