{"action":"created","issue":{"url":"https://api.github.com/repos/cf-platform-eng/cf-containers-broker/issues/33","labels_url":"https://api.github.com/repos/cf-platform-eng/cf-containers-broker/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/cf-platform-eng/cf-containers-broker/issues/33/comments","events_url":"https://api.github.com/repos/cf-platform-eng/cf-containers-broker/issues/33/events","html_url":"https://github.com/cf-platform-eng/cf-containers-broker/pull/33","id":112464974,"number":33,"title":"Allow containers to discover their host ports if they want to advertise them for clustering","user":{"login":"drnic","id":108,"avatar_url":"https://avatars.githubusercontent.com/u/108?v=3","gravatar_id":"","url":"https://api.github.com/users/drnic","html_url":"https://github.com/drnic","followers_url":"https://api.github.com/users/drnic/followers","following_url":"https://api.github.com/users/drnic/following{/other_user}","gists_url":"https://api.github.com/users/drnic/gists{/gist_id}","starred_url":"https://api.github.com/users/drnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drnic/subscriptions","organizations_url":"https://api.github.com/users/drnic/orgs","repos_url":"https://api.github.com/users/drnic/repos","events_url":"https://api.github.com/users/drnic/events{/privacy}","received_events_url":"https://api.github.com/users/drnic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-10-20T21:30:55Z","updated_at":"2015-10-28T14:02:59Z","closed_at":"2015-10-28T14:02:59Z","pull_request":{"url":"https://api.github.com/repos/cf-platform-eng/cf-containers-broker/pulls/33","html_url":"https://github.com/cf-platform-eng/cf-containers-broker/pull/33","diff_url":"https://github.com/cf-platform-eng/cf-containers-broker/pull/33.diff","patch_url":"https://github.com/cf-platform-eng/cf-containers-broker/pull/33.patch"},"body":"For each `{1234/tcp => [{ 'HostPort' => 32768}]}` port binding, the following environment variable\r\nwill be available inside the container:\r\n\r\n```\r\nPORT_1234_TCP=32768\r\nHOSTPORT_1234_TCP=10.244.20.6:32768\r\n```\r\n\r\nwhere the host ip (via `Settings.external_ip`) is 10.244.20.6"},"comment":{"url":"https://api.github.com/repos/cf-platform-eng/cf-containers-broker/issues/comments/151855148","html_url":"https://github.com/cf-platform-eng/cf-containers-broker/pull/33#issuecomment-151855148","issue_url":"https://api.github.com/repos/cf-platform-eng/cf-containers-broker/issues/33","id":151855148,"user":{"login":"drnic","id":108,"avatar_url":"https://avatars.githubusercontent.com/u/108?v=3","gravatar_id":"","url":"https://api.github.com/users/drnic","html_url":"https://github.com/drnic","followers_url":"https://api.github.com/users/drnic/followers","following_url":"https://api.github.com/users/drnic/following{/other_user}","gists_url":"https://api.github.com/users/drnic/gists{/gist_id}","starred_url":"https://api.github.com/users/drnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drnic/subscriptions","organizations_url":"https://api.github.com/users/drnic/orgs","repos_url":"https://api.github.com/users/drnic/repos","events_url":"https://api.github.com/users/drnic/events{/privacy}","received_events_url":"https://api.github.com/users/drnic/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T14:02:59Z","updated_at":"2015-10-28T14:02:59Z","body":"I wrote this pull request based on unit tests; then had to do other things; and got around to testing it out this morning - but I have a feeling it doesn't work as expected with normal local Docker engine, let alone remote Swarm. I'm sorry for the PR prior to testing."}}