{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12182","labels_url":"https://api.github.com/repos/docker/docker/issues/12182/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12182/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12182/events","html_url":"https://github.com/docker/docker/issues/12182","id":67114595,"number":12182,"title":"Socket mount not recognised inside container on Centos 7","user":{"login":"manics","id":1644105,"avatar_url":"https://avatars.githubusercontent.com/u/1644105?v=3","gravatar_id":"","url":"https://api.github.com/users/manics","html_url":"https://github.com/manics","followers_url":"https://api.github.com/users/manics/followers","following_url":"https://api.github.com/users/manics/following{/other_user}","gists_url":"https://api.github.com/users/manics/gists{/gist_id}","starred_url":"https://api.github.com/users/manics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manics/subscriptions","organizations_url":"https://api.github.com/users/manics/orgs","repos_url":"https://api.github.com/users/manics/repos","events_url":"https://api.github.com/users/manics/events{/privacy}","received_events_url":"https://api.github.com/users/manics/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-08T12:09:02Z","updated_at":"2015-04-13T22:52:04Z","closed_at":"2015-04-08T13:56:57Z","body":"If a host socket is mounted inside a container it is treated as a normal file:\r\n\r\n```\r\n[root@localhost ~]# ls -l /run/docker.sock\r\nsrw-rw----. 1 root root 0 Apr  8 12:38 /run/docker.sock\r\n```\r\n\r\n```\r\n[root@localhost ~]# docker run -it --privileged -v /run/docker.sock:/run/docker.sock --rm centos ls -l /run/docker.sock\r\n-rw-rw----. 1 root root 0 Apr  8 11:38 /run/docker.sock\r\n```\r\n\r\nIf instead the parent directory is mounted the socket is recognised:\r\n\r\n```\r\n[root@localhost ~]# docker run -it --privileged -v /run:/run --rm centos ls -l /run/docker.sock\r\nsrw-rw----. 1 root root 0 Apr  8 11:38 /run/docker.sock\r\n```\r\n\r\nSystem details:\r\n```\r\n[root@localhost ~]# cat /etc/centos-release\r\nCentOS Linux release 7.0.1406 (Core)\r\n[root@localhost ~]# rpm -q docker\r\ndocker-1.5.0-28.el7.centos.x86_64\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/92524044","html_url":"https://github.com/docker/docker/issues/12182#issuecomment-92524044","issue_url":"https://api.github.com/repos/docker/docker/issues/12182","id":92524044,"user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T22:52:04Z","updated_at":"2015-04-13T22:52:04Z","body":"@lsm5 the binary I am getting from virt7-testing has the RH patches it is *not* vanilla docker"}}