{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18357","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/18357/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18357/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18357/events","html_url":"https://github.com/docker/docker/issues/18357","id":119856002,"number":18357,"title":"Cannot connect container by its overlay network IP from host","user":{"login":"xiangpengzhao","id":15881573,"avatar_url":"https://avatars.githubusercontent.com/u/15881573?v=3","gravatar_id":"","url":"https://api.github.com/users/xiangpengzhao","html_url":"https://github.com/xiangpengzhao","followers_url":"https://api.github.com/users/xiangpengzhao/followers","following_url":"https://api.github.com/users/xiangpengzhao/following{/other_user}","gists_url":"https://api.github.com/users/xiangpengzhao/gists{/gist_id}","starred_url":"https://api.github.com/users/xiangpengzhao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiangpengzhao/subscriptions","organizations_url":"https://api.github.com/users/xiangpengzhao/orgs","repos_url":"https://api.github.com/users/xiangpengzhao/repos","events_url":"https://api.github.com/users/xiangpengzhao/events{/privacy}","received_events_url":"https://api.github.com/users/xiangpengzhao/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":11,"created_at":"2015-12-02T02:58:34Z","updated_at":"2016-04-06T20:41:17Z","closed_at":null,"body":"Description of problem:\r\nI create an overlay network and connect a container to it. I can ping the host IP from the container successfully. But it fails when I ping the container's IP which the overlay network assigned to it. \r\nDo I need to make more settings for the connectivity, or is that a bug or a designed behavior?\r\n\r\ndocker version\r\n```\r\nClient:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n```\r\ndocker info\r\n```\r\nContainers: 3\r\nImages: 30\r\nServer Version: 1.9.1\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 43\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 3.19.0-25-generic\r\nOperating System: Ubuntu 14.04.3 LTS\r\nCPUs: 4\r\nTotal Memory: 3.86 GiB\r\nName: user11\r\nID: I5MJ:ANLS:EUGF:H7FV:4E3K:3KOJ:L4CD:P6LF:V3HD:AWXT:YL5E:23TJ\r\nWARNING: No swap limit support\r\nCluster store: etcd://192.168.122.10:4001\r\nCluster advertise: 192.168.122.11:2376\r\n```\r\nuname -a\r\n```\r\nLinux user11 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\nSteps:\r\n1. Create an overlay network net1 10.10.11.0/24\r\n2. Create a container con11\r\n3. Connect con11 to net1, the IP 10.10.11.1 is assigned to con11 \r\n4. Ping the host's IP from con11 and ping the con11's 10.10.11.1 from host.\r\n\r\nExpected:\r\nping of both direction in step 4 is successful.\r\n\r\nActual Results:\r\nPing the host's IP from con11 successfully. Ping the con11's 10.10.11.1 from host failed.\r\n\r\n@thaJeztah @WeiZhang555 "},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/206556469","html_url":"https://github.com/docker/docker/issues/18357#issuecomment-206556469","issue_url":"https://api.github.com/repos/docker/docker/issues/18357","id":206556469,"user":{"login":"brugnara","id":2781191,"avatar_url":"https://avatars.githubusercontent.com/u/2781191?v=3","gravatar_id":"","url":"https://api.github.com/users/brugnara","html_url":"https://github.com/brugnara","followers_url":"https://api.github.com/users/brugnara/followers","following_url":"https://api.github.com/users/brugnara/following{/other_user}","gists_url":"https://api.github.com/users/brugnara/gists{/gist_id}","starred_url":"https://api.github.com/users/brugnara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brugnara/subscriptions","organizations_url":"https://api.github.com/users/brugnara/orgs","repos_url":"https://api.github.com/users/brugnara/repos","events_url":"https://api.github.com/users/brugnara/events{/privacy}","received_events_url":"https://api.github.com/users/brugnara/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T20:41:16Z","updated_at":"2016-04-06T20:41:16Z","body":"@mavenugo how can I detect the eth1 ip from outside the container? It seem that docker inspect shows only the eth0 ip. Many thanks. I've linked to the issue opened to the dokku team. Many thanks for your time.\r\n\r\nIssue: https://github.com/dokku/dokku/issues/2085"}}