{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/3211","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/3211/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/3211/comments","events_url":"https://api.github.com/repos/docker/compose/issues/3211/events","html_url":"https://github.com/docker/compose/issues/3211","id":143495266,"number":3211,"title":"Cross-mount volume between two containers ","user":{"login":"sourcerer-mike","id":2559177,"avatar_url":"https://avatars.githubusercontent.com/u/2559177?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcerer-mike","html_url":"https://github.com/sourcerer-mike","followers_url":"https://api.github.com/users/sourcerer-mike/followers","following_url":"https://api.github.com/users/sourcerer-mike/following{/other_user}","gists_url":"https://api.github.com/users/sourcerer-mike/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcerer-mike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcerer-mike/subscriptions","organizations_url":"https://api.github.com/users/sourcerer-mike/orgs","repos_url":"https://api.github.com/users/sourcerer-mike/repos","events_url":"https://api.github.com/users/sourcerer-mike/events{/privacy}","received_events_url":"https://api.github.com/users/sourcerer-mike/received_events","type":"User","site_admin":false},"labels":[{"id":256432429,"url":"https://api.github.com/repos/docker/compose/labels/area/volumes","name":"area/volumes","color":"c7def8","default":false},{"id":69777239,"url":"https://api.github.com/repos/docker/compose/labels/kind/question","name":"kind/question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-03-25T13:08:42Z","updated_at":"2016-11-24T21:42:44Z","closed_at":null,"body":"Hello.\n\nI have service A containing \"/path/to/file.socket\".\nThis file shall now be in service B in the path \"/different/path/to/socket.io\" (could also be the same path, tho).\n\nIt would be very useful to have such an option in the `docker-compose.yml` file:\n\n```\nversion: '2'\nservices:\n    MYSQL_SERVICE:\n        image: mysql:latest\n        environment:\n            MYSQL_ROOT_PASSWORD: ''\n            MYSQL_ALLOW_EMPTY_PASSWORD: 1\n    PHP_SERVICE:\n        image: php:latest\n        volumes_from:\n            - MYSQL_SERVICE:/var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock\n```\n\nCurrently you might need to create an empty file, mount it in service A and then mount the same file in service B. Such a detour. Especially if you need to do it with directories - then it will end up in a big mess.\n\nHope to hear from you soon.\n\nCheers!\n"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/262847808","html_url":"https://github.com/docker/compose/issues/3211#issuecomment-262847808","issue_url":"https://api.github.com/repos/docker/compose/issues/3211","id":262847808,"user":{"login":"MANTHAN-D","id":14868341,"avatar_url":"https://avatars.githubusercontent.com/u/14868341?v=3","gravatar_id":"","url":"https://api.github.com/users/MANTHAN-D","html_url":"https://github.com/MANTHAN-D","followers_url":"https://api.github.com/users/MANTHAN-D/followers","following_url":"https://api.github.com/users/MANTHAN-D/following{/other_user}","gists_url":"https://api.github.com/users/MANTHAN-D/gists{/gist_id}","starred_url":"https://api.github.com/users/MANTHAN-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MANTHAN-D/subscriptions","organizations_url":"https://api.github.com/users/MANTHAN-D/orgs","repos_url":"https://api.github.com/users/MANTHAN-D/repos","events_url":"https://api.github.com/users/MANTHAN-D/events{/privacy}","received_events_url":"https://api.github.com/users/MANTHAN-D/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T21:42:44Z","updated_at":"2016-11-24T21:42:44Z","body":"I am trying to use solution of named volume to share sockets between two services. But I am unable to connect using nc command. Command fails saying Connection refused. Does this mean the socket files are not available across two containers ?"}}
{"actor":{"display_login":"MANTHAN-D"}}