docker-volume-netshare
docker-volume-netshare copied to clipboard
CIFS option on doesn't seem to be working on 0.16
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?
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
Yes. Mounting manually in the host worked fine.
@joaocc Please see my added 30#comment.
AFAICT a possible docker bug in connection with cifs server configuration.