{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/36313","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/36313/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/36313/comments","events_url":"https://api.github.com/repos/moby/moby/issues/36313/events","html_url":"https://github.com/moby/moby/issues/36313","id":297170964,"node_id":"MDU6SXNzdWUyOTcxNzA5NjQ=","number":36313,"title":"NFS volume works only with no-lock option on docker for Windows","user":{"login":"Yivan","id":9025839,"node_id":"MDQ6VXNlcjkwMjU4Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/9025839?v=4","gravatar_id":"","url":"https://api.github.com/users/Yivan","html_url":"https://github.com/Yivan","followers_url":"https://api.github.com/users/Yivan/followers","following_url":"https://api.github.com/users/Yivan/following{/other_user}","gists_url":"https://api.github.com/users/Yivan/gists{/gist_id}","starred_url":"https://api.github.com/users/Yivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yivan/subscriptions","organizations_url":"https://api.github.com/users/Yivan/orgs","repos_url":"https://api.github.com/users/Yivan/repos","events_url":"https://api.github.com/users/Yivan/events{/privacy}","received_events_url":"https://api.github.com/users/Yivan/received_events","type":"User","site_admin":false},"labels":[{"id":381838255,"node_id":"MDU6TGFiZWwzODE4MzgyNTU=","url":"https://api.github.com/repos/moby/moby/labels/platform/desktop","name":"platform/desktop","color":"F6FBFF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-14T16:58:02Z","updated_at":"2018-10-08T04:48:38Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI get some time to make it work, but i manage to use NFS volume in Docker for Windows, to mount a local share on Windows (NFS is faster than Samba).\r\nOn Windows i add an NFS Server, set the export as /server-dev (no specific options).\r\nNext i run docker:\r\n```\r\ndocker volume create --driver local --opt type=nfs --opt o=addr=10.0.75.1,hard,nolock,rw --opt device=:/server-dev mynfs\r\ndocker run -it -v mynfs:/server-dev alpine sh\r\n```\r\nIt work great!\r\n\r\nWhat is strange is that **without the no-lock option it doesn't work** (timeout after several minutes), please see https://github.com/docker/for-win/issues/1241\r\n\r\nIt brings two questions please:\r\n- does nfs volume can work without no-lock nfs option (i am on Docker for Windows, last stable release)?\r\n- how the nfs mount work as there is no mount.nfs in docker for windows... it is magical, really : ))Is it a custom NFS client embeded in docker binary ?\r\n(i ask in docker for windows repository but they don't know too: https://github.com/docker/for-win/issues/1700)\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/427721154","html_url":"https://github.com/moby/moby/issues/36313#issuecomment-427721154","issue_url":"https://api.github.com/repos/moby/moby/issues/36313","id":427721154,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzcyMTE1NA==","user":{"login":"akajains","id":7066357,"node_id":"MDQ6VXNlcjcwNjYzNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/7066357?v=4","gravatar_id":"","url":"https://api.github.com/users/akajains","html_url":"https://github.com/akajains","followers_url":"https://api.github.com/users/akajains/followers","following_url":"https://api.github.com/users/akajains/following{/other_user}","gists_url":"https://api.github.com/users/akajains/gists{/gist_id}","starred_url":"https://api.github.com/users/akajains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akajains/subscriptions","organizations_url":"https://api.github.com/users/akajains/orgs","repos_url":"https://api.github.com/users/akajains/repos","events_url":"https://api.github.com/users/akajains/events{/privacy}","received_events_url":"https://api.github.com/users/akajains/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T04:48:38Z","updated_at":"2018-10-08T04:48:38Z","author_association":"NONE","body":"> I'm trying the same approach, but I'm getting this output:\r\n> \r\n> ```\r\n> C:\\Users\\xxx\\projects\\docker>docker volume create --driver local --opt type=nfs --opt o=addr=10.0.75.1,hard,nolock,rw --opt device=:/server-dev mynfs\r\n> mynfs\r\n> C:\\Users\\xxx\\projects\\docker>docker run -it  -v mynfs:/server-dev ubuntu bash\r\n> docker: Error response from daemon: error while mounting volume '/mnt/sda1/var/lib/docker/volumes/mynfs/_data': error while mounting volume with options: type='nfs' device=':./sync' o='addr=10.0.75.1,hard,nolock,rw': connection timed out.\r\n> ```\r\n> I have maybe noobish questions, but I'm not super familiar with docker.\r\n> \r\n> * Are there any other stuff, I have to set?\r\n> * What is the IP address stands for?\r\n> * How can I specify a path to the folder in Windows?\r\n> \r\n> I've tried this on 2 PCs and on both had the same issue.\r\n\r\nDid you get it resolved?"}}
{"actor":{"display_login":"akajains"}}