{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/19533","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/19533/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/19533/comments","events_url":"https://api.github.com/repos/docker/docker/issues/19533/events","html_url":"https://github.com/docker/docker/issues/19533","id":127852480,"number":19533,"title":"Proposal: Support multi-level domain alias in container's embedded DNS","user":{"login":"BSWANG","id":3598874,"avatar_url":"https://avatars.githubusercontent.com/u/3598874?v=3","gravatar_id":"","url":"https://api.github.com/users/BSWANG","html_url":"https://github.com/BSWANG","followers_url":"https://api.github.com/users/BSWANG/followers","following_url":"https://api.github.com/users/BSWANG/following{/other_user}","gists_url":"https://api.github.com/users/BSWANG/gists{/gist_id}","starred_url":"https://api.github.com/users/BSWANG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BSWANG/subscriptions","organizations_url":"https://api.github.com/users/BSWANG/orgs","repos_url":"https://api.github.com/users/BSWANG/repos","events_url":"https://api.github.com/users/BSWANG/events{/privacy}","received_events_url":"https://api.github.com/users/BSWANG/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/networking","name":"group/networking","color":"F6FBFF"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/feature","name":"kind/feature","color":"AAB3AB"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-01-21T06:02:48Z","updated_at":"2016-07-09T20:55:34Z","closed_at":null,"body":"Now the container's embedded DNS just support alias which not contains `'.'`. If it support multi-level domain alias. Service discovery between containers will be more easy than before.\r\n\r\n### There is a simple service discovery scenario below: \r\n\r\nUse nginx to proxy http request to web service, two simple webservice config:\r\n`docker run -d --net user-define-network --net-alias  wordpress wordpress`\r\n`docker run -d --net user-define-network --net-alias django django`\r\n\r\nThe nginx config below:\r\n`docker run -d --net user-define-network --net-alias routing --net-alias django.routing --net-alias wordpress.routing nginx `\r\nOR\r\n`docker run -d --net user-define-network --net-alias routing --net-alias *.routing nginx `\r\n\r\nAnd access the web service through the routing service in other containers:\r\n`curl -vL wordpress.routing`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/231555449","html_url":"https://github.com/docker/docker/issues/19533#issuecomment-231555449","issue_url":"https://api.github.com/repos/docker/docker/issues/19533","id":231555449,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T20:55:33Z","updated_at":"2016-07-09T20:55:33Z","body":"@mort1k that's by design; networks are isolated, and containers from different networks are not allowed to communicate. If you *do* want them to communicate, attach a container to multiple networks."}}
{"actor":{"display_login":"thaJeztah"}}