{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/8499","labels_url":"https://api.github.com/repos/docker/docker/issues/8499/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/8499/comments","events_url":"https://api.github.com/repos/docker/docker/issues/8499/events","html_url":"https://github.com/docker/docker/issues/8499","id":45427371,"number":8499,"title":"dns resolve fails with incorrect SELinux context","user":{"login":"porjo","id":1296987,"avatar_url":"https://avatars.githubusercontent.com/u/1296987?v=3","gravatar_id":"","url":"https://api.github.com/users/porjo","html_url":"https://github.com/porjo","followers_url":"https://api.github.com/users/porjo/followers","following_url":"https://api.github.com/users/porjo/following{/other_user}","gists_url":"https://api.github.com/users/porjo/gists{/gist_id}","starred_url":"https://api.github.com/users/porjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porjo/subscriptions","organizations_url":"https://api.github.com/users/porjo/orgs","repos_url":"https://api.github.com/users/porjo/repos","events_url":"https://api.github.com/users/porjo/events{/privacy}","received_events_url":"https://api.github.com/users/porjo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels//system/selinux","name":"/system/selinux","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-09T22:49:06Z","updated_at":"2015-02-26T13:35:38Z","closed_at":null,"body":"Using docker 1.2.0 (Fedora 20 RPM)\r\n\r\nStarting docker with non-standard path to data e.g.\r\n\r\n```\r\n/usr/bin/docker -d -H fd:// --selinux-enabled -g /data/docker\r\n```\r\n\r\nEverything seems fine except DNS lookups don't work e.g.\r\n\r\n```sh\r\n$ docker run -ti ubuntu /bin/bash\r\nroot@5c9838b4a5b3:/# ping www.google.com\r\nping: unknown host www.google.com\r\nroot@5c9838b4a5b3:/# ls -al /etc/ | grep resolv.conf\r\nls: cannot access /etc/hostname: Permission denied\r\nls: cannot access /etc/hosts: Permission denied\r\nls: cannot access /etc/resolv.conf: Permission denied\r\n-??????????  ? ?    ?          ?            ? resolv.conf\r\n```\r\n\r\nIf I go back to using `/var/lib/docker` DNS resolution works as expect.\r\n\r\n==\r\n\r\nOutput from `docker info`:\r\n\r\n```\r\n$ docker info\r\nContainers: 1\r\nImages: 10\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:4-3538947-pool\r\n Pool Blocksize: 64 Kb\r\n Data file: /data/docker/devicemapper/devicemapper/data\r\n Metadata file: /data/docker/devicemapper/devicemapper/metadata\r\n Data Space Used: 313.0 Mb\r\n Data Space Total: 102400.0 Mb\r\n Metadata Space Used: 0.9 Mb\r\n Metadata Space Total: 2048.0 Mb\r\nExecution Driver: native-0.2\r\nKernel Version: 3.16.2-201.fc20.x86_64\r\nOperating System: Fedora 20 (Heisenbug)\r\n```\r\n\r\nOutput from `docker inspect 5c9838b4a5b3`\r\n\r\nhttp://pastebin.com/tcVCZ9Fv\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/76178494","html_url":"https://github.com/docker/docker/issues/8499#issuecomment-76178494","issue_url":"https://api.github.com/repos/docker/docker/issues/8499","id":76178494,"user":{"login":"rhatdan","id":2000835,"avatar_url":"https://avatars.githubusercontent.com/u/2000835?v=3","gravatar_id":"","url":"https://api.github.com/users/rhatdan","html_url":"https://github.com/rhatdan","followers_url":"https://api.github.com/users/rhatdan/followers","following_url":"https://api.github.com/users/rhatdan/following{/other_user}","gists_url":"https://api.github.com/users/rhatdan/gists{/gist_id}","starred_url":"https://api.github.com/users/rhatdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhatdan/subscriptions","organizations_url":"https://api.github.com/users/rhatdan/orgs","repos_url":"https://api.github.com/users/rhatdan/repos","events_url":"https://api.github.com/users/rhatdan/events{/privacy}","received_events_url":"https://api.github.com/users/rhatdan/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T13:35:37Z","updated_at":"2015-02-26T13:35:37Z","body":"These should all be fixed in docker-1.4 or greater.  Probably fixed in docker-1.3"}}