{"action":"opened","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/1084","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/1084/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/1084/events","html_url":"https://github.com/rancherio/rancher/issues/1084","id":86159847,"number":1084,"title":"Rancher server doesn't map ports for container with managed network","user":{"login":"a-pastushenko","id":12729981,"avatar_url":"https://avatars.githubusercontent.com/u/12729981?v=3","gravatar_id":"","url":"https://api.github.com/users/a-pastushenko","html_url":"https://github.com/a-pastushenko","followers_url":"https://api.github.com/users/a-pastushenko/followers","following_url":"https://api.github.com/users/a-pastushenko/following{/other_user}","gists_url":"https://api.github.com/users/a-pastushenko/gists{/gist_id}","starred_url":"https://api.github.com/users/a-pastushenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-pastushenko/subscriptions","organizations_url":"https://api.github.com/users/a-pastushenko/orgs","repos_url":"https://api.github.com/users/a-pastushenko/repos","events_url":"https://api.github.com/users/a-pastushenko/events{/privacy}","received_events_url":"https://api.github.com/users/a-pastushenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-08T12:37:48Z","updated_at":"2015-06-08T12:37:48Z","closed_at":null,"body":"When I create docker container with managed network and port mapping to host ip it seems like rancher network agent does not map port for this container.\r\ndocker ps\r\n![screen shot 2015-06-08 at 3 16 21 pm](https://cloud.githubusercontent.com/assets/12729981/8034549/64e92484-0df1-11e5-8d91-0ffd0f3a9edd.png)\r\nScreenshot from rancher server \r\n![screen shot 2015-06-08 at 3 17](https://cloud.githubusercontent.com/assets/12729981/8034617/ef55a11a-0df1-11e5-8208-920f457b2beb.png)\r\nNetwork agent:\r\n```\r\nroot@d5ffcf0b421f:/# iptables -L\r\nChain INPUT (policy DROP)\r\ntarget     prot opt source               destination\r\nACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED\r\nACCEPT     udp  --  anywhere             anywhere             udp dpt:domain\r\nACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain\r\nACCEPT     udp  --  anywhere             anywhere             udp dpt:isakmp\r\nACCEPT     udp  --  anywhere             anywhere             udp dpt:ipsec-nat-t\r\nACCEPT     icmp --  anywhere             anywhere\r\nACCEPT     all  --  anywhere             anywhere\r\n```\r\n```\r\nroot@d5ffcf0b421f:/# iptables -t nat -L\r\nChain PREROUTING (policy ACCEPT)\r\ntarget     prot opt source               destination\r\n\r\nChain INPUT (policy ACCEPT)\r\ntarget     prot opt source               destination\r\n\r\nChain OUTPUT (policy ACCEPT)\r\ntarget     prot opt source               destination\r\n\r\nChain POSTROUTING (policy ACCEPT)\r\ntarget     prot opt source               destination\r\nMASQUERADE  all  --  10.42.0.1            anywhere\r\n```"}}