{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/17571","labels_url":"https://api.github.com/repos/docker/docker/issues/17571/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/17571/comments","events_url":"https://api.github.com/repos/docker/docker/issues/17571/events","html_url":"https://github.com/docker/docker/issues/17571","id":114426268,"number":17571,"title":"Connection to default bridge is not appearing in /etc/hosts","user":{"login":"moxiegirl","id":1347209,"avatar_url":"https://avatars.githubusercontent.com/u/1347209?v=3","gravatar_id":"","url":"https://api.github.com/users/moxiegirl","html_url":"https://github.com/moxiegirl","followers_url":"https://api.github.com/users/moxiegirl/followers","following_url":"https://api.github.com/users/moxiegirl/following{/other_user}","gists_url":"https://api.github.com/users/moxiegirl/gists{/gist_id}","starred_url":"https://api.github.com/users/moxiegirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxiegirl/subscriptions","organizations_url":"https://api.github.com/users/moxiegirl/orgs","repos_url":"https://api.github.com/users/moxiegirl/repos","events_url":"https://api.github.com/users/moxiegirl/events{/privacy}","received_events_url":"https://api.github.com/users/moxiegirl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/networking","name":"group/networking","color":"F6FBFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-31T18:23:29Z","updated_at":"2015-10-31T21:03:18Z","closed_at":null,"body":"I have three containers.\r\n\r\n- container1 is on the `bridge`\r\n- container2 is on the `bridge` and my `isolated_nw` bridge\r\n- container3 is on the `isolated_nw`\r\n\r\nI expected to be able to ping 1/3 from inside 2 but I can only ping 3.  Is this expected?\r\n\r\n\r\n```bash\r\n\r\nubuntu@ip-172-31-36-118:~$ docker inspect --format='{{json .NetworkSettings.Networks}}'  container1 | python -m json.tool\r\n{\r\n    \"bridge\": {\r\n        \"EndpointID\": \"3e056893bc83fd0996700e5fb557a064d0ca8e3c5ef416e25a486128d7f3b0c0\",\r\n        \"Gateway\": \"172.17.0.1\",\r\n        \"GlobalIPv6Address\": \"\",\r\n        \"GlobalIPv6PrefixLen\": 0,\r\n        \"IPAddress\": \"172.17.0.3\",\r\n        \"IPPrefixLen\": 16,\r\n        \"IPv6Gateway\": \"\",\r\n        \"MacAddress\": \"02:42:ac:11:00:03\"\r\n    }\r\n}\r\nubuntu@ip-172-31-36-118:~$ docker inspect --format='{{json .NetworkSettings.Networks}}'  container2 | python -m json.tool\r\n{\r\n    \"bridge\": {\r\n        \"EndpointID\": \"9e31f4eb4d0a39b4e94a16bbcdfaa72508dd4bd1d878968be642464bc51a19bc\",\r\n        \"Gateway\": \"172.17.0.1\",\r\n        \"GlobalIPv6Address\": \"\",\r\n        \"GlobalIPv6PrefixLen\": 0,\r\n        \"IPAddress\": \"172.17.0.4\",\r\n        \"IPPrefixLen\": 16,\r\n        \"IPv6Gateway\": \"\",\r\n        \"MacAddress\": \"02:42:ac:11:00:04\"\r\n    },\r\n    \"isolated_nw\": {\r\n        \"EndpointID\": \"b2924ec83b1458a4d0627bdb3b709912083797be7270310a445161cb399c13a9\",\r\n        \"Gateway\": \"172.22.0.1\",\r\n        \"GlobalIPv6Address\": \"\",\r\n        \"GlobalIPv6PrefixLen\": 0,\r\n        \"IPAddress\": \"172.22.0.2\",\r\n        \"IPPrefixLen\": 16,\r\n        \"IPv6Gateway\": \"\",\r\n        \"MacAddress\": \"02:42:ac:16:00:02\"\r\n    }\r\n}\r\nubuntu@ip-172-31-36-118:~$ docker inspect --format='{{json .NetworkSettings.Networks}}'  container3 | python -m json.tool\r\n{\r\n    \"isolated_nw\": {\r\n        \"EndpointID\": \"56ac55779690a263b402a3f64ff3ba8408a080e008c0506b05e57703cb7b401f\",\r\n        \"Gateway\": \"172.22.0.1\",\r\n        \"GlobalIPv6Address\": \"\",\r\n        \"GlobalIPv6PrefixLen\": 0,\r\n        \"IPAddress\": \"172.22.0.3\",\r\n        \"IPPrefixLen\": 16,\r\n        \"IPv6Gateway\": \"\",\r\n        \"MacAddress\": \"02:42:ac:16:00:03\"\r\n    }\r\n}\r\nubuntu@ip-172-31-36-118:~$ docker attach container2\r\n\r\n/ # cat /etc/hosts\r\n172.17.0.4\t4ba26d272c15\r\n127.0.0.1\tlocalhost\r\n::1\tlocalhost ip6-localhost ip6-loopback\r\nfe00::0\tip6-localnet\r\nff00::0\tip6-mcastprefix\r\nff02::1\tip6-allnodes\r\nff02::2\tip6-allrouters\r\n172.22.0.3\tcontainer3\r\n172.22.0.3\tcontainer3.isolated_nw\r\n/ # ping container3\r\nPING container3 (172.22.0.3): 56 data bytes\r\n64 bytes from 172.22.0.3: seq=0 ttl=64 time=0.084 ms\r\n64 bytes from 172.22.0.3: seq=1 ttl=64 time=0.067 ms\r\n64 bytes from 172.22.0.3: seq=2 ttl=64 time=0.070 ms\r\n^C\r\n--- container3 ping statistics ---\r\n3 packets transmitted, 3 packets received, 0% packet loss\r\nround-trip min/avg/max = 0.067/0.073/0.084 ms\r\n/ # ping container1\r\nping: bad address 'container1'\r\n/ # ping ubuntu@ip-172-31-36-118:~$ docker --version\r\nDocker version 1.9.0-rc4, build e6f5a3c\r\nubuntu@ip-172-31-36-118:~$ \r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/152772710","html_url":"https://github.com/docker/docker/issues/17571#issuecomment-152772710","issue_url":"https://api.github.com/repos/docker/docker/issues/17571","id":152772710,"user":{"login":"aboch","id":10080882,"avatar_url":"https://avatars.githubusercontent.com/u/10080882?v=3","gravatar_id":"","url":"https://api.github.com/users/aboch","html_url":"https://github.com/aboch","followers_url":"https://api.github.com/users/aboch/followers","following_url":"https://api.github.com/users/aboch/following{/other_user}","gists_url":"https://api.github.com/users/aboch/gists{/gist_id}","starred_url":"https://api.github.com/users/aboch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboch/subscriptions","organizations_url":"https://api.github.com/users/aboch/orgs","repos_url":"https://api.github.com/users/aboch/repos","events_url":"https://api.github.com/users/aboch/events{/privacy}","received_events_url":"https://api.github.com/users/aboch/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T21:03:17Z","updated_at":"2015-10-31T21:03:17Z","body":"You can find more information in #17325 on to why the inbuilt network discovery was removed from the default bridge network. In short, it was to re-establish the 1.7 behaviour."}}