{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-win/issues/1829","repository_url":"https://api.github.com/repos/docker/for-win","labels_url":"https://api.github.com/repos/docker/for-win/issues/1829/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-win/issues/1829/comments","events_url":"https://api.github.com/repos/docker/for-win/issues/1829/events","html_url":"https://github.com/docker/for-win/issues/1829","id":304923652,"number":1829,"title":"docker-compose bind mount docker.sock not a valid Windows path","user":{"login":"ameier38","id":11416908,"avatar_url":"https://avatars3.githubusercontent.com/u/11416908?v=4","gravatar_id":"","url":"https://api.github.com/users/ameier38","html_url":"https://github.com/ameier38","followers_url":"https://api.github.com/users/ameier38/followers","following_url":"https://api.github.com/users/ameier38/following{/other_user}","gists_url":"https://api.github.com/users/ameier38/gists{/gist_id}","starred_url":"https://api.github.com/users/ameier38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameier38/subscriptions","organizations_url":"https://api.github.com/users/ameier38/orgs","repos_url":"https://api.github.com/users/ameier38/repos","events_url":"https://api.github.com/users/ameier38/events{/privacy}","received_events_url":"https://api.github.com/users/ameier38/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-13T20:29:07Z","updated_at":"2018-03-15T17:02:39Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\nShould be able to bind mount the docker socket as explained\r\nin http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ using docker-compose\r\n\r\n### Actual behavior\r\nI can successfully run the command\r\n```commandline\r\ndocker run -v /var/run/docker.sock:/var/run/docker.sock -it docker\r\n```\r\nBut when I try to use within a `docker-compose.yml` file I get the following error\r\n```commandline\r\nCreating docker_docker_1 ... error\r\n\r\nERROR: for docker_docker_1  Cannot create container for service docker: b'Mount denied:\\nThe source path \"\\\\\\\\var\\\\\\\\run\\\\\\\\docker.sock:/var/run/docker.sock\"\\nis not a valid Windows path'\r\n\r\nERROR: for docker  Cannot create container for service docker: b'Mount denied:\\nThe source path \"\\\\\\\\var\\\\\\\\run\\\\\\\\docker.sock:/var/run/docker.sock\"\\nis not a valid Windows path'\r\nERROR: Encountered errors while bringing up the project.\r\n```\r\n### Information\r\nDocker Community Edition\r\n```\r\nVersion 18.03.0-ce-rc3-win56 (16433)\r\nChannel: edge\r\nb6990be\r\n```\r\n> Note: Just updated Docker and I did not receive this error in previous version.\r\n\r\ndocker-compose.yml\r\n```yaml\r\nversion: '3'\r\nservices:\r\n    docker:\r\n        image: docker\r\n        stdin_open: true\r\n        tty: true\r\n        volumes:\r\n            - /var/run/docker.sock:/var/run/docker.sock\r\n```\r\n\r\nRunning `docker-compose up` gives the following error\r\n```commandline\r\nλ  docker-compose up\r\nCreating docker_docker_1 ... error\r\n\r\nERROR: for docker_docker_1  Cannot create container for service docker: b'Mount denied:\\nThe source path \"\\\\\\\\var\\\\\\\\run\\\\\\\\docker.sock:/var/run/docker.sock\"\\nis not a valid Windows path'\r\n\r\nERROR: for docker  Cannot create container for service docker: b'Mount denied:\\nThe source path \"\\\\\\\\var\\\\\\\\run\\\\\\\\docker.sock:/var/run/docker.sock\"\\nis not a valid Windows path'\r\nERROR: Encountered errors while bringing up the project.\r\n```\r\n\r\n### Steps to reproduce the behavior\r\n\r\n  1. Run `docker-compose up` using above `docker-compose.yml`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/for-win/issues/comments/373450097","html_url":"https://github.com/docker/for-win/issues/1829#issuecomment-373450097","issue_url":"https://api.github.com/repos/docker/for-win/issues/1829","id":373450097,"user":{"login":"wailua","id":729605,"avatar_url":"https://avatars1.githubusercontent.com/u/729605?v=4","gravatar_id":"","url":"https://api.github.com/users/wailua","html_url":"https://github.com/wailua","followers_url":"https://api.github.com/users/wailua/followers","following_url":"https://api.github.com/users/wailua/following{/other_user}","gists_url":"https://api.github.com/users/wailua/gists{/gist_id}","starred_url":"https://api.github.com/users/wailua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wailua/subscriptions","organizations_url":"https://api.github.com/users/wailua/orgs","repos_url":"https://api.github.com/users/wailua/repos","events_url":"https://api.github.com/users/wailua/events{/privacy}","received_events_url":"https://api.github.com/users/wailua/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T17:02:39Z","updated_at":"2018-03-15T17:02:39Z","author_association":"NONE","body":"It's still an issue in 18.03.0-ce-rc4"}}
{"actor":{"display_login":"wailua"}}