{"action":"created","issue":{"url":"https://api.github.com/repos/gondor/docker-volume-netshare/issues/30","repository_url":"https://api.github.com/repos/gondor/docker-volume-netshare","labels_url":"https://api.github.com/repos/gondor/docker-volume-netshare/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/gondor/docker-volume-netshare/issues/30/comments","events_url":"https://api.github.com/repos/gondor/docker-volume-netshare/issues/30/events","html_url":"https://github.com/gondor/docker-volume-netshare/issues/30","id":147164610,"number":30,"title":"cifs option handling broken with 0.16","user":{"login":"holgerreif","id":12717933,"avatar_url":"https://avatars.githubusercontent.com/u/12717933?v=3","gravatar_id":"","url":"https://api.github.com/users/holgerreif","html_url":"https://github.com/holgerreif","followers_url":"https://api.github.com/users/holgerreif/followers","following_url":"https://api.github.com/users/holgerreif/following{/other_user}","gists_url":"https://api.github.com/users/holgerreif/gists{/gist_id}","starred_url":"https://api.github.com/users/holgerreif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holgerreif/subscriptions","organizations_url":"https://api.github.com/users/holgerreif/orgs","repos_url":"https://api.github.com/users/holgerreif/repos","events_url":"https://api.github.com/users/holgerreif/events{/privacy}","received_events_url":"https://api.github.com/users/holgerreif/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gondor/docker-volume-netshare/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gondor/docker-volume-netshare/labels/Pending%20Verification","name":"Pending Verification","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-09T21:23:07Z","updated_at":"2016-04-10T18:05:21Z","closed_at":null,"body":"I redid the first two test of [comment](https://github.com/gondor/docker-volume-netshare/issues/21#issuecomment-206388228).\r\n\r\n### 1. Provide credentials at plugin startup\r\n```\r\n$ docker-volume-netshare cifs -u username -p password --verbose=true &\r\n[1] 18872\r\n$ WARN[0000] Error: open /root/.netrc: no such file or directory\r\nINFO[0000] == docker-volume-netshare :: Version: 0.16 - Built: 2016-04-09T01:02:16-07:00 ==\r\nINFO[0000] Starting CIFS :: user: username, pass: ***, domain: , secutity: , netrc: /root\r\n\r\n$ docker volume create -d cifs --name host/share\r\nDEBU[0056] Entering Get: {host/share map[]}\r\nDEBU[0056] Entering Create: name: host/share, options map[]\r\nDEBU[0056] Create volume -> name: host/share, map[]\r\nDEBU[0056] Host path for host/share is at /var/lib/docker-volumes/netshare/cifs/host/share\r\nhost/share\r\n$ docker run -it -v  host/share:/mnt --rm alpine ash\r\nDEBU[0071] Host path for host/share is at /var/lib/docker-volumes/netshare/cifs/host/share\r\nINFO[0071] Mount: host/share, map[]\r\nINFO[0071] Mounting CIFS volume //host/share on /var/lib/docker-volumes/netshare/cifs/host/share\r\nDEBU[0071] GetCreds: host=host, netrc=<nil>\r\nDEBU[0071] Executing: mount -t cifs -o username=username,=password,rw //host/share /var/lib/docker-volumes/netshare/cifs/host/share\r\n\r\n2016/04/09 23:10:21 mount error(16): Device or resource busy\r\nRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)\r\n\r\ndocker: Error response from daemon: VolumeDriver.Mount: exit status 32.\r\nSee 'docker run --help'.\r\n```\r\n\r\n### 2. Provide credentials at volume create time\r\n```\r\n$ docker-volume-netshare cifs --verbose=true &\r\n[1] 19262\r\n$ WARN[0000] Error: open /root/.netrc: no such file or directory\r\nINFO[0000] == docker-volume-netshare :: Version: 0.16 - Built: 2016-04-09T01:02:16-07:00 ==\r\nINFO[0000] Starting CIFS :: user: , pass: ***, domain: , secutity: , netrc: /root\r\n\r\n$ docker volume create -d cifs --name host/share --opt username=username --opt password=password\r\nDEBU[0021] Entering Get: {host/share map[]}\r\nDEBU[0021] Entering Create: name: host/share, options map[password:password username:username]\r\nDEBU[0021] Create volume -> name: host/share, map[password:password username:username]\r\nDEBU[0021] Host path for host/share is at /var/lib/docker-volumes/netshare/cifs/host/share\r\nhost/share\r\n$ docker run -it -v  host/share:/mnt --rm alpine ash\r\nDEBU[0033] Host path for host/share is at /var/lib/docker-volumes/netshare/cifs/host/share\r\nINFO[0033] Mount: host/share, map[]\r\nINFO[0033] Mounting CIFS volume //host/share on /var/lib/docker-volumes/netshare/cifs/host/share\r\nDEBU[0033] GetCreds: host=host, netrc=<nil>\r\nDEBU[0033] Executing: mount -t cifs -o guest,rw //host/share /var/lib/docker-volumes/netshare/cifs/host/share\r\n\r\n2016/04/09 23:17:12 mount error(13): Permission denied\r\nRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)\r\n\r\ndocker: Error response from daemon: VolumeDriver.Mount: exit status 32.\r\nSee 'docker run --help'.\r\n```\r\n\r\nObviously the options to `mount -t cifs` are wrong. Didn't had the time to look at the code yet. \r\nMaybe you could have a look at the cifs' option handling even w/o working samba setup."},"comment":{"url":"https://api.github.com/repos/gondor/docker-volume-netshare/issues/comments/208034023","html_url":"https://github.com/gondor/docker-volume-netshare/issues/30#issuecomment-208034023","issue_url":"https://api.github.com/repos/gondor/docker-volume-netshare/issues/30","id":208034023,"user":{"login":"gondor","id":148656,"avatar_url":"https://avatars.githubusercontent.com/u/148656?v=3","gravatar_id":"","url":"https://api.github.com/users/gondor","html_url":"https://github.com/gondor","followers_url":"https://api.github.com/users/gondor/followers","following_url":"https://api.github.com/users/gondor/following{/other_user}","gists_url":"https://api.github.com/users/gondor/gists{/gist_id}","starred_url":"https://api.github.com/users/gondor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gondor/subscriptions","organizations_url":"https://api.github.com/users/gondor/orgs","repos_url":"https://api.github.com/users/gondor/repos","events_url":"https://api.github.com/users/gondor/events{/privacy}","received_events_url":"https://api.github.com/users/gondor/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T18:05:21Z","updated_at":"2016-04-10T18:05:21Z","body":"Ok thanks for testing, so does my fix address the original issue?"}}