{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/982","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/982/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/982/events","html_url":"https://github.com/docker/for-win/issues/982","id":248234397,"number":982,"title":"Container init caused mounting [path] to roofs [path] caused - permission denied (on Windows)","user":{"login":"Splik","id":7940314,"avatar_url":"https://avatars2.githubusercontent.com/u/7940314?v=4","gravatar_id":"","url":"https://api.github.com/users/Splik","html_url":"https://github.com/Splik","followers_url":"https://api.github.com/users/Splik/followers","following_url":"https://api.github.com/users/Splik/following{/other_user}","gists_url":"https://api.github.com/users/Splik/gists{/gist_id}","starred_url":"https://api.github.com/users/Splik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Splik/subscriptions","organizations_url":"https://api.github.com/users/Splik/orgs","repos_url":"https://api.github.com/users/Splik/repos","events_url":"https://api.github.com/users/Splik/events{/privacy}","received_events_url":"https://api.github.com/users/Splik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-06T08:51:38Z","updated_at":"2017-08-07T14:54:51Z","closed_at":null,"body":"### Expected behavior\r\nSomething like notification: 'Check your firewall settings. Did you enable `Hyper V` in `Windows Firewall/Allowed apps`?'\r\n\r\n### Actual behavior\r\nI have a brand new Windows10. I've created a small project with docker-compose. \r\ndocker-compose.yml like:\r\n\r\n```\r\nversion: '2'\r\n\r\nservices:\r\n    go:\r\n        build: go\r\n        ports:\r\n            - ${GO_PORT}:8080\r\n        volumes:\r\n            - ../server:/go/src/my-module\r\n        working_dir: /go/src/my-module\r\n        command: sh -c 'go run my-module.go'\r\n```\r\n\r\nDockerfile like:\r\n\r\n```\r\nFROM golang:latest\r\n\r\nRUN apt-get update && \\\r\n\r\n    # install git\r\n    apt-get install -y git\r\n\r\n# install godep\r\nRUN go get github.com/tools/godep\r\n\r\nEXPOSE 8080\r\n```\r\n\r\nAll works fine, but when I run the command: `@docker-compose run go /bin/sh -c 'cd /go/src/my-module && godep restore'`, `godep` tries to copy folder `../server/vendor` from host to container and throws an error:\r\n\r\n```\r\n...\r\nError response from daemon: oci runtime error: container_linux.go:262: starting container process caused \"process_linux.go:339: container init caused \\\"rootfs_linux.go:57: mounting \\\\\\\"/D/web/my-project/server\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/overlay2/ed93aaa8c2fd1333471116ae9a27618b5ebd9dbb502881cf300a2fab31393b37/merged\\\\\\\" at \\\\\\\"/go/src/my-module\\\\\\\" caused \\\\\\\"stat /D/web/my-project/server: permission denied\\\\\\\"\\\"\"\r\n```\r\n\r\n**Docker didn't ask the permissions from Windows Firewall. I've spent a lot of hours to find that problem was with Windows Firewall. The simple notification or something like will be good solution to solve this problem.**\r\n\r\n### How to fix?\r\n\r\n- The 1st solution, go to `Control Panel\\System and Security\\Windows Firewall\\Allowed apps` and enable `Hyper V` (need to tick all `private`):\r\n![sreenshot](https://monosnap.com/file/WVovhSwFpGNjJzyFie2WMdfjThxdZ7.png)\r\n\r\n- The 2nd solution, disable `Windows Firewall`\r\n\r\nAlso, this comment can help to understand: https://forums.docker.com/t/volume-mounts-in-windows-does-not-work/10693/92\r\n"},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/320686627","html_url":"https://github.com/docker/for-win/issues/982#issuecomment-320686627","issue_url":"https://api.github.com/repos/docker/for-win/issues/982","id":320686627,"user":{"login":"jasonbivins","id":28021664,"avatar_url":"https://avatars1.githubusercontent.com/u/28021664?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonbivins","html_url":"https://github.com/jasonbivins","followers_url":"https://api.github.com/users/jasonbivins/followers","following_url":"https://api.github.com/users/jasonbivins/following{/other_user}","gists_url":"https://api.github.com/users/jasonbivins/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonbivins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonbivins/subscriptions","organizations_url":"https://api.github.com/users/jasonbivins/orgs","repos_url":"https://api.github.com/users/jasonbivins/repos","events_url":"https://api.github.com/users/jasonbivins/events{/privacy}","received_events_url":"https://api.github.com/users/jasonbivins/received_events","type":"User","site_admin":false},"created_at":"2017-08-07T14:54:51Z","updated_at":"2017-08-07T14:54:51Z","body":"Hi @Splik \r\n\r\nThanks for posting this!  I do have a small KB started for the firewall issues - I'll make sure to add this to it!"}}
{"actor":{"display_login":"jasonbivins"}}