{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13381","labels_url":"https://api.github.com/repos/docker/docker/issues/13381/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13381/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13381/events","html_url":"https://github.com/docker/docker/issues/13381","id":78915953,"number":13381,"title":"Can't access internet from containers","user":{"login":"cfpeng","id":2275123,"avatar_url":"https://avatars.githubusercontent.com/u/2275123?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpeng","html_url":"https://github.com/cfpeng","followers_url":"https://api.github.com/users/cfpeng/followers","following_url":"https://api.github.com/users/cfpeng/following{/other_user}","gists_url":"https://api.github.com/users/cfpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpeng/subscriptions","organizations_url":"https://api.github.com/users/cfpeng/orgs","repos_url":"https://api.github.com/users/cfpeng/repos","events_url":"https://api.github.com/users/cfpeng/events{/privacy}","received_events_url":"https://api.github.com/users/cfpeng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/more-info-needed","name":"status/more-info-needed","color":"C6A49A"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-21T09:39:40Z","updated_at":"2015-08-14T22:05:01Z","closed_at":null,"body":"**When I ping google.com in the container, it return : ping: unknown host**\r\n\r\n**[HOST Info]**\r\nroot@host# uname -a\r\nLinux localhost 4.0.2-x86_64-linode56 #1 SMP Mon May 11 16:55:19 EDT 2015 x86_64 GNU/Linux\r\n\r\nroot@host# docker version\r\nClient version: 1.6.2\r\nClient API version: 1.18\r\nGo version (client): go1.4.2\r\nGit commit (client): 7c8fca2\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.6.2\r\nServer API version: 1.18\r\nGo version (server): go1.4.2\r\nGit commit (server): 7c8fca2\r\nOS/Arch (server): linux/amd64\r\n\r\n**start the container**\r\nroot@host#docker run --rm  -it debian /bin/bash \r\n\r\n**start capture package**\r\nroot@host# tshark -i eth0 -i docker0\r\n1 0.000000 106.186.. -> 8.8.8.8 DNS 70 Standard query 0xb49a A google.com\r\n2 0.046688 8.8.8.8 -> 106.186.. DNS 86 Standard query response 0xb49a A 216.58.221.14\r\n3 -0.000042 172.17.0.4 -> 8.8.8.8 DNS 70 Standard query 0xb49a A google.com\r\n4 4.171017 fe80::1 -> ff02::1 ICMPv6 118 Router Advertisement from 00:05:73:a0:0f:ff\r\n5 5.005167 106.186.. -> 8.8.8.8 DNS 70 Standard query 0xb49a A google.com\r\n6 5.007502 8.8.8.8 -> 106.186.. DNS 86 Standard query response 0xb49a A 216.58.221.14\r\n7 5.005127 172.17.0.4 -> 8.8.8.8 DNS 70 Standard query 0xb49a A google.com\r\n8 5.016512 02:42:ac:11:00:04 -> ca:5b:7d:34:78:20 ARP 42 Who has 172.17.42.1? Tell 172.17.0.4\r\n9 5.016542 ca:5b:7d:34:78:20 -> 02:42:ac:11:00:04 ARP 42 172.17.42.1 is at ca:5b:7d:34:78:20\r\n10 10.010414 106.186.. -> 8.8.8.8 DNS 70 Standard query 0x1367 A google.com\r\n11 10.046683 8.8.8.8 -> 106.186.. DNS 86 Standard query response 0x1367 A 216.58.221.14\r\n12 10.010374 172.17.0.4 -> 8.8.8.8 DNS 70 Standard query 0x1367 A google.com\r\n13 15.015578 106.186.. -> 8.8.8.8 DNS 70 Standard query 0x1367 A google.com\r\n14 15.052782 8.8.8.8 -> 106.186.. DNS 246 Standard query response 0x1367 A 173.194.126.198 A 173.194.126.196 A 173.194.126.197 A 173.194.126.194 A 173.194.126.195 A 173.194.126.193 A 173.194.126.206 A 173.194.126.199 A 173.194.126.200 A 173.194.126.192 A 173.194.126.201\r\n15 15.015538 172.17.0.4 -> 8.8.8.8 DNS 70 Standard query 0x1367 A google.com\r\n\r\n\r\nroot@f82d47432161:/# ip addr\r\n\teth0: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default\r\n    link/ether 02:42:ac:11:00:04 brd ff:ff:ff:ff:ff:ff\r\n    inet 172.17.0.4/16 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::42:acff:fe11:4/64 scope link\r\n       valid_lft forever preferred_lft forever\r\n \r\nroot@f82d47432161:/# ping google.com \r\nping: unknown host\r\n\r\n\r\n**It seems that the host did not forword package to the container**"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/131250968","html_url":"https://github.com/docker/docker/issues/13381#issuecomment-131250968","issue_url":"https://api.github.com/repos/docker/docker/issues/13381","id":131250968,"user":{"login":"fkeet","id":1825030,"avatar_url":"https://avatars.githubusercontent.com/u/1825030?v=3","gravatar_id":"","url":"https://api.github.com/users/fkeet","html_url":"https://github.com/fkeet","followers_url":"https://api.github.com/users/fkeet/followers","following_url":"https://api.github.com/users/fkeet/following{/other_user}","gists_url":"https://api.github.com/users/fkeet/gists{/gist_id}","starred_url":"https://api.github.com/users/fkeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkeet/subscriptions","organizations_url":"https://api.github.com/users/fkeet/orgs","repos_url":"https://api.github.com/users/fkeet/repos","events_url":"https://api.github.com/users/fkeet/events{/privacy}","received_events_url":"https://api.github.com/users/fkeet/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T22:05:01Z","updated_at":"2015-08-14T22:05:01Z","body":"Similar issue. Removing the bridge (and relevant cleanup) did not have an effect.\r\n\r\n$ uname -a\r\nLinux hostname 3.19.0-25-generic #26-Ubuntu SMP Fri Jul 24 21:17:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n$ docker version\r\nClient:\r\n Version:      1.8.1\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   d12ea79\r\n Built:        Thu Aug 13 02:40:42 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.8.1\r\n API version:  1.20\r\n Go version:   go1.4.2\r\n Git commit:   d12ea79\r\n Built:        Thu Aug 13 02:40:42 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\n$ docker run -ti ubuntu /bin/bash\r\n$ ping 8.8.8.8\r\nPING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.\r\n64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=0.967 ms\r\n....\r\n\r\n$ ping www.google.com\r\nping: unknown host www.google.com\r\n"}}