Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joaocc opened this issue Apr 29, 2016 · 3 comments
Open

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

joaocc opened this issue Apr 29, 2016 · 3 comments

Comments

@joaocc
Copy link

joaocc commented Apr 29, 2016

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?

@gondor
Copy link
Member

gondor commented May 3, 2016

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

@joaocc
Copy link
Author

joaocc commented May 3, 2016

Yes. Mounting manually in the host worked fine.

@holgerreif
Copy link
Contributor

holgerreif commented May 3, 2016

@joaocc Please see my added 30#comment.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants