{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/26523","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/26523/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/26523/comments","events_url":"https://api.github.com/repos/docker/docker/issues/26523/events","html_url":"https://github.com/docker/docker/issues/26523","id":176599836,"number":26523,"title":"\"host not found\" for service in same overlay network","user":{"login":"michaelkrog","id":681472,"avatar_url":"https://avatars.githubusercontent.com/u/681472?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelkrog","html_url":"https://github.com/michaelkrog","followers_url":"https://api.github.com/users/michaelkrog/followers","following_url":"https://api.github.com/users/michaelkrog/following{/other_user}","gists_url":"https://api.github.com/users/michaelkrog/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelkrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelkrog/subscriptions","organizations_url":"https://api.github.com/users/michaelkrog/orgs","repos_url":"https://api.github.com/users/michaelkrog/repos","events_url":"https://api.github.com/users/michaelkrog/events{/privacy}","received_events_url":"https://api.github.com/users/michaelkrog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/networking","name":"area/networking","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/status/more-info-needed","name":"status/more-info-needed","color":"C6A49A"},{"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/58","html_url":"https://github.com/docker/docker/milestones/1.12.2","labels_url":"https://api.github.com/repos/docker/docker/milestones/58/labels","id":1973095,"number":58,"title":"1.12.2","description":"","creator":{"login":"tiborvass","id":827131,"avatar_url":"https://avatars.githubusercontent.com/u/827131?v=3","gravatar_id":"","url":"https://api.github.com/users/tiborvass","html_url":"https://github.com/tiborvass","followers_url":"https://api.github.com/users/tiborvass/followers","following_url":"https://api.github.com/users/tiborvass/following{/other_user}","gists_url":"https://api.github.com/users/tiborvass/gists{/gist_id}","starred_url":"https://api.github.com/users/tiborvass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiborvass/subscriptions","organizations_url":"https://api.github.com/users/tiborvass/orgs","repos_url":"https://api.github.com/users/tiborvass/repos","events_url":"https://api.github.com/users/tiborvass/events{/privacy}","received_events_url":"https://api.github.com/users/tiborvass/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":112,"state":"closed","created_at":"2016-08-30T16:26:40Z","updated_at":"2016-10-20T20:26:01Z","due_on":"2016-10-10T00:00:00Z","closed_at":"2016-10-14T18:47:41Z"},"comments":25,"created_at":"2016-09-13T10:02:49Z","updated_at":"2016-10-24T19:57:15Z","closed_at":null,"body":"**Description**\r\n\r\nI am trying to setup a Docker in Swarm mode having 1 manager and 2 workers. They run in Digital Ocean's cloud and the nodes communicate via private networking.\r\n\r\nI am consistently having issues when 2 services connected to the same overlay network tries to communicate. Sometimes the resolved ip does not hit some instances of a service and at others times the host name for a service is not at all resolvable. \r\n\r\n**Steps to reproduce the issue:**\r\n1. Setup a Docker in Swarm mode having 1 manager and 2 worker in Digital Ocean's cloud having the nodes communicate via private networking.\r\n2. Setup 2 services based on fx. nginx.\r\n\r\n\r\n**Describe the results you received:**\r\nThe swarm is apparently working correctly:\r\n```\r\n$ docker node ls\r\nID                           HOSTNAME  STATUS  AVAILABILITY  MANAGER STATUS\r\n5yy45mhvjwe6y8p19h91kzh1w    engine2   Ready   Active        \r\n759bq2mdovhtcdklvditk3kd4 *  engine1   Ready   Active        Leader\r\ncnzv7b5zcoiecubzjz4vcgk0z    engine3   Ready   Active   \r\n```\r\n\r\nAlso my services seems to be running just fine:\r\n```\r\n$ docker service ls\r\nID            NAME           REPLICAS  IMAGE                          COMMAND\r\n179qx1ab00z0  previsto-site  1/1       codezoo/previsto-site:latest   \r\n7wx5t6ftj2xu  proxy          1/1       codezoo/previsto-proxy:latest  \r\n```\r\n\r\nBut if I ping previsto-site from within proxy I get this:\r\n```\r\n$ docker ps\r\nCONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS              PORTS               NAMES\r\n97ee49ca4a1b        codezoo/previsto-proxy:latest   \"nginx -g 'daemon off\"   23 minutes ago      Up 23 minutes       80/tcp, 443/tcp     proxy.1.5p428z4n9jg2nuai88bqsf8jn\r\n\r\n$ docker exec -ti proxy.1.5p428z4n9jg2nuai88bqsf8jn ping previsto-site\r\nping: unknown host\r\n```\r\n\r\nHowever, if I scale down the previsto-site service to 0 and scale it up to 1 again, then I can resolve the host name.\r\n\r\n```\r\n$ docker service scale previsto-site=0\r\nprevisto-site scaled to 0\r\n\r\n$ docker service scale previsto-site=1\r\nprevisto-site scaled to 1\r\n\r\n$ docker exec -ti proxy.1.5p428z4n9jg2nuai88bqsf8jn ping previsto-site\r\nPING previsto-site (10.0.0.2): 56 data bytes\r\n92 bytes from 97ee49ca4a1b (10.0.0.6): Destination Host Unreachable\r\n92 bytes from 97ee49ca4a1b (10.0.0.6): Destination Host Unreachable\r\n92 bytes from 97ee49ca4a1b (10.0.0.6): Destination Host Unreachable\r\n```\r\n**Describe the results you expected:**\r\nI would expect the DNS resolving to work consistently.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.12.1\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   23cf638\r\n Built:        Thu Aug 18 05:33:38 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.1\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   23cf638\r\n Built:        Thu Aug 18 05:33:38 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 8\r\n Running: 1\r\n Paused: 0\r\n Stopped: 7\r\nImages: 7\r\nServer Version: 1.12.1\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 26\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: null host bridge overlay\r\nSwarm: active\r\n NodeID: 759bq2mdovhtcdklvditk3kd4\r\n Is Manager: true\r\n ClusterID: evem90a6vnmgzpgvyp0kcimrc\r\n Managers: 1\r\n Nodes: 3\r\n Orchestration:\r\n  Task History Retention Limit: 5\r\n Raft:\r\n  Snapshot Interval: 10000\r\n  Heartbeat Tick: 1\r\n  Election Tick: 3\r\n Dispatcher:\r\n  Heartbeat Period: 5 seconds\r\n CA Configuration:\r\n  Expiry Duration: 3 months\r\n Node Address: 10.129.23.9\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: apparmor seccomp\r\nKernel Version: 4.4.0-36-generic\r\nOperating System: Ubuntu 16.04.1 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 992.5 MiB\r\nName: engine1\r\nID: K6VW:TLMS:3G4J:2GJR:VUJQ:ZOJD:7BJD:QGFW:N7C4:2BGT:MXZO:PXXW\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\nDigital Ocean, Ubuntu 16.04"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/255847900","html_url":"https://github.com/docker/docker/issues/26523#issuecomment-255847900","issue_url":"https://api.github.com/repos/docker/docker/issues/26523","id":255847900,"user":{"login":"coryleeio","id":678853,"avatar_url":"https://avatars.githubusercontent.com/u/678853?v=3","gravatar_id":"","url":"https://api.github.com/users/coryleeio","html_url":"https://github.com/coryleeio","followers_url":"https://api.github.com/users/coryleeio/followers","following_url":"https://api.github.com/users/coryleeio/following{/other_user}","gists_url":"https://api.github.com/users/coryleeio/gists{/gist_id}","starred_url":"https://api.github.com/users/coryleeio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coryleeio/subscriptions","organizations_url":"https://api.github.com/users/coryleeio/orgs","repos_url":"https://api.github.com/users/coryleeio/repos","events_url":"https://api.github.com/users/coryleeio/events{/privacy}","received_events_url":"https://api.github.com/users/coryleeio/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T19:57:15Z","updated_at":"2016-10-24T19:57:15Z","body":"On my most recent run\r\n\r\nTest #5\r\nOn A:\r\nCan resolve itself, can't resolve B or C...\r\n\r\n\r\nOn B:\r\n# curl a\r\ncurl: (6) Could not resolve host: a\r\n# curl b\r\ncurl: (6) Could not resolve host: b\r\n# curl c\r\ncurl: (6) Could not resolve host: c\r\n\r\nCant resolve anything, including itself.\r\n\r\nOn C:\r\n# curl a\r\ncurl: (6) Could not resolve host: a\r\n# curl b\r\ncurl: (6) Could not resolve host: b\r\n# curl c\r\nnginx landing page shows..\r\n\r\nCan resolve C, cannot resolve anything else"}}
{"actor":{"display_login":"coryleeio"}}