{"action":"closed","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/2313","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/2313/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/2313/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/2313/events","html_url":"https://github.com/mesosphere/marathon/issues/2313","id":108570596,"number":2313,"title":"healthcheck ports messing with docker and \"host\" networking mode","user":{"login":"vixns","id":727336,"avatar_url":"https://avatars.githubusercontent.com/u/727336?v=3","gravatar_id":"","url":"https://api.github.com/users/vixns","html_url":"https://github.com/vixns","followers_url":"https://api.github.com/users/vixns/followers","following_url":"https://api.github.com/users/vixns/following{/other_user}","gists_url":"https://api.github.com/users/vixns/gists{/gist_id}","starred_url":"https://api.github.com/users/vixns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vixns/subscriptions","organizations_url":"https://api.github.com/users/vixns/orgs","repos_url":"https://api.github.com/users/vixns/repos","events_url":"https://api.github.com/users/vixns/events{/privacy}","received_events_url":"https://api.github.com/users/vixns/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-28T00:36:37Z","updated_at":"2015-10-03T06:51:33Z","closed_at":"2015-10-03T06:51:33Z","body":"With HOST networking mode, dynamic mapped ports are returned by mesos like in BRIDGE mode, then marathon use the portIndex of this array as the healthcheck port.\r\n\r\nAs the container doesn't have any IP address in HOST networking mode, I guess marathon should use the ports[portIndex] from the config instead.\r\n \r\nTested with head marathon + #2231 / mesos 0.24.1\r\n"}}