{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11467","labels_url":"https://api.github.com/repos/docker/docker/issues/11467/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11467/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11467/events","html_url":"https://github.com/docker/docker/issues/11467","id":62732173,"number":11467,"title":"-p option issues","user":{"login":"sgillis","id":4242168,"avatar_url":"https://avatars.githubusercontent.com/u/4242168?v=3","gravatar_id":"","url":"https://api.github.com/users/sgillis","html_url":"https://github.com/sgillis","followers_url":"https://api.github.com/users/sgillis/followers","following_url":"https://api.github.com/users/sgillis/following{/other_user}","gists_url":"https://api.github.com/users/sgillis/gists{/gist_id}","starred_url":"https://api.github.com/users/sgillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgillis/subscriptions","organizations_url":"https://api.github.com/users/sgillis/orgs","repos_url":"https://api.github.com/users/sgillis/repos","events_url":"https://api.github.com/users/sgillis/events{/privacy}","received_events_url":"https://api.github.com/users/sgillis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-18T16:15:44Z","updated_at":"2015-03-18T16:57:24Z","closed_at":null,"body":"I am seeing different behavior depending on the base image, so I am not sure if this is an issue in Docker or somewhere else.\r\n\r\nTo reproduce the issue, start with setting up a container\r\n\r\n    $ docker run -it -p 8888:9999 debian:wheezy\r\n    # apt-get update && apt-get install -y netcat\r\n    # netcat -l 9999\r\n\r\nThen on the host machine\r\n\r\n    $ telnet localhost 8888\r\n    Trying 127.0.0.1...\r\n    telnet: Unable to connect to remote host: Connection refused\r\n\r\nWhen I set up the container with ubuntu\r\n\r\n    $ docker run -it -p 8888:9999 ubuntu:14.04\r\n    # apt-get update && apt-get install -y netcat\r\n    # netcat -l 9999\r\n\r\nI do get a connection with telnet on the host machine\r\n\r\n    $ telnet localhost 8888\r\n    Trying 127.0.0.1...\r\n    Connected to localhost. \r\n    Escape character is '^]'.\r\n\r\nWhy is this behaving differently?"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/83056923","html_url":"https://github.com/docker/docker/issues/11467#issuecomment-83056923","issue_url":"https://api.github.com/repos/docker/docker/issues/11467","id":83056923,"user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T16:57:24Z","updated_at":"2015-03-18T16:57:24Z","body":"I'm gonna close this since I don't think its a docker issue"}}