{"action":"created","issue":{"url":"https://api.github.com/repos/boot2docker/boot2docker/issues/788","labels_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/788/comments","events_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/788/events","html_url":"https://github.com/boot2docker/boot2docker/issues/788","id":62719291,"number":788,"title":"Boot2Docker 1.5 is not properly forwarding ports","user":{"login":"jwaldrip","id":43164,"avatar_url":"https://avatars.githubusercontent.com/u/43164?v=3","gravatar_id":"","url":"https://api.github.com/users/jwaldrip","html_url":"https://github.com/jwaldrip","followers_url":"https://api.github.com/users/jwaldrip/followers","following_url":"https://api.github.com/users/jwaldrip/following{/other_user}","gists_url":"https://api.github.com/users/jwaldrip/gists{/gist_id}","starred_url":"https://api.github.com/users/jwaldrip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwaldrip/subscriptions","organizations_url":"https://api.github.com/users/jwaldrip/orgs","repos_url":"https://api.github.com/users/jwaldrip/repos","events_url":"https://api.github.com/users/jwaldrip/events{/privacy}","received_events_url":"https://api.github.com/users/jwaldrip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T15:16:16Z","updated_at":"2015-03-24T21:27:07Z","closed_at":null,"body":"I am trying to run [this app](https://github.com/brandfolder/flynn-test-app). I am not able to hit it from my mac using the docker host ip and port or via curl when using `boot2docker ssh`.\r\n\r\n### Build (or use docker-compose build)\r\n`docker build -t flynn-test .`\r\n\r\n### Run (or use docker-compose up)\r\n`docker run -t -p 9292:9292 flynn-test .`\r\n\r\n### Try to curl locally\r\n```sh\r\n$ curl http://192.168.59.103:9292/\r\n$ curl: (7) Failed to connect to 192.168.59.103 port 9292: Connection refused\r\n```\r\n\r\n### Try to curl with boot2docker ssh\r\n```sh\r\n$ boot2docker ssh\r\ndocker@boot2docker:~$ curl http://127.0.0.1:9292\r\ncurl: (7) Failed connect to 127.0.0.1:9292; Connection refused\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/boot2docker/boot2docker/issues/comments/85699928","html_url":"https://github.com/boot2docker/boot2docker/issues/788#issuecomment-85699928","issue_url":"https://api.github.com/repos/boot2docker/boot2docker/issues/788","id":85699928,"user":{"login":"upio","id":1594562,"avatar_url":"https://avatars.githubusercontent.com/u/1594562?v=3","gravatar_id":"","url":"https://api.github.com/users/upio","html_url":"https://github.com/upio","followers_url":"https://api.github.com/users/upio/followers","following_url":"https://api.github.com/users/upio/following{/other_user}","gists_url":"https://api.github.com/users/upio/gists{/gist_id}","starred_url":"https://api.github.com/users/upio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upio/subscriptions","organizations_url":"https://api.github.com/users/upio/orgs","repos_url":"https://api.github.com/users/upio/repos","events_url":"https://api.github.com/users/upio/events{/privacy}","received_events_url":"https://api.github.com/users/upio/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T21:27:07Z","updated_at":"2015-03-24T21:27:07Z","body":"So I was having this problem but it was nothing to do with Docker. The reason it wasn't working or me is because my app was listening on \"localhost\" instead of 0.0.0.0. Make sure your app is doing that.\r\n\r\nI had a quick look at that the Ruby app @jwaldrip linked to. It is listening on port 8080. Why are you trying to reach it on port 9292?\r\n\r\nconfig.json\r\n\r\n    \"web\": {\r\n        \"cmd\": [\"rackup\", \"-p$PORT\", \"-h$HOST\"],\r\n        \"ports\": [{\r\n            \"port\": 8080,\r\n            \"proto\": \"tcp\"\r\n        }]\r\n    }\r\n\r\nDockerfile\r\n\r\n    ENV PORT 8080\r\n    ENV HOST 0.0.0.0\r\n    EXPOSE 8080\r\n\r\nHave you tried running:\r\n\r\n    docker run -t -p 8080:8080 flynn-test .\r\n    boot2docker ssh\r\n    curl http://localhost:8080/"}}