{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/1143","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/1143/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/1143/comments","events_url":"https://api.github.com/repos/docker/docker/issues/1143/events","html_url":"https://github.com/docker/docker/issues/1143","id":16417723,"number":1143,"title":"Document how to connect to Docker host from container","user":{"login":"bkad","id":425989,"avatar_url":"https://avatars.githubusercontent.com/u/425989?v=3","gravatar_id":"","url":"https://api.github.com/users/bkad","html_url":"https://github.com/bkad","followers_url":"https://api.github.com/users/bkad/followers","following_url":"https://api.github.com/users/bkad/following{/other_user}","gists_url":"https://api.github.com/users/bkad/gists{/gist_id}","starred_url":"https://api.github.com/users/bkad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkad/subscriptions","organizations_url":"https://api.github.com/users/bkad/orgs","repos_url":"https://api.github.com/users/bkad/repos","events_url":"https://api.github.com/users/bkad/events{/privacy}","received_events_url":"https://api.github.com/users/bkad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/13","html_url":"https://github.com/docker/docker/milestones/0.8.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/13/labels","id":410305,"number":13,"title":"0.8.0","description":"\r\n\r\n<!---\r\n@huboard:{\"order\":9.5}\r\n-->\r\n","creator":{"login":"shykes","id":29565,"avatar_url":"https://avatars.githubusercontent.com/u/29565?v=3","gravatar_id":"","url":"https://api.github.com/users/shykes","html_url":"https://github.com/shykes","followers_url":"https://api.github.com/users/shykes/followers","following_url":"https://api.github.com/users/shykes/following{/other_user}","gists_url":"https://api.github.com/users/shykes/gists{/gist_id}","starred_url":"https://api.github.com/users/shykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shykes/subscriptions","organizations_url":"https://api.github.com/users/shykes/orgs","repos_url":"https://api.github.com/users/shykes/repos","events_url":"https://api.github.com/users/shykes/events{/privacy}","received_events_url":"https://api.github.com/users/shykes/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":20,"state":"closed","created_at":"2013-08-24T00:49:17Z","updated_at":"2014-03-24T23:43:44Z","due_on":null,"closed_at":"2014-02-13T17:40:22Z"},"comments":188,"created_at":"2013-07-05T20:33:17Z","updated_at":"2016-11-07T00:59:30Z","closed_at":"2013-12-02T16:26:26Z","body":"I had some trouble figuring out how to connect the docker host from the container. Couldn't find documentation, but did find irc logs saying something about using `172.16.42.1`, which works.\n\nIt'd be nice if this behavior and how it's related to `docker0` was documented.\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/258725826","html_url":"https://github.com/docker/docker/issues/1143#issuecomment-258725826","issue_url":"https://api.github.com/repos/docker/docker/issues/1143","id":258725826,"user":{"login":"adamhenson","id":747743,"avatar_url":"https://avatars.githubusercontent.com/u/747743?v=3","gravatar_id":"","url":"https://api.github.com/users/adamhenson","html_url":"https://github.com/adamhenson","followers_url":"https://api.github.com/users/adamhenson/followers","following_url":"https://api.github.com/users/adamhenson/following{/other_user}","gists_url":"https://api.github.com/users/adamhenson/gists{/gist_id}","starred_url":"https://api.github.com/users/adamhenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamhenson/subscriptions","organizations_url":"https://api.github.com/users/adamhenson/orgs","repos_url":"https://api.github.com/users/adamhenson/repos","events_url":"https://api.github.com/users/adamhenson/events{/privacy}","received_events_url":"https://api.github.com/users/adamhenson/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T00:59:30Z","updated_at":"2016-11-07T00:59:30Z","body":"+1 for dockerhost\r\n\r\n... for now though you could do this:\r\n\r\n```\r\n$ docker build --build-arg HTTP_PROXY=172.16.42.1 .\r\n```\r\n\r\n... or in my similar case with `docker-compose` - I do this:\r\n```\r\nclient:\r\n        build: ./client\r\n        extra_hosts:\r\n            - \"dev.ardea.com:${HTTP_PROXY}\"\r\n```\r\nset your host at build time:\r\n```\r\nexport HTTP_PROXY=172.16.42.1 && docker-compose build\r\n```"}}
{"actor":{"display_login":"adamhenson"}}