{"action":"opened","issue":{"url":"https://api.github.com/repos/gliderlabs/registrator/issues/289","labels_url":"https://api.github.com/repos/gliderlabs/registrator/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/gliderlabs/registrator/issues/289/comments","events_url":"https://api.github.com/repos/gliderlabs/registrator/issues/289/events","html_url":"https://github.com/gliderlabs/registrator/issues/289","id":116133424,"number":289,"title":"-ip option not honored, all containers registered as 0.0.0.0","user":{"login":"diamantn","id":12693106,"avatar_url":"https://avatars.githubusercontent.com/u/12693106?v=3","gravatar_id":"","url":"https://api.github.com/users/diamantn","html_url":"https://github.com/diamantn","followers_url":"https://api.github.com/users/diamantn/followers","following_url":"https://api.github.com/users/diamantn/following{/other_user}","gists_url":"https://api.github.com/users/diamantn/gists{/gist_id}","starred_url":"https://api.github.com/users/diamantn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diamantn/subscriptions","organizations_url":"https://api.github.com/users/diamantn/orgs","repos_url":"https://api.github.com/users/diamantn/repos","events_url":"https://api.github.com/users/diamantn/events{/privacy}","received_events_url":"https://api.github.com/users/diamantn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-10T15:45:44Z","updated_at":"2015-11-10T15:45:44Z","closed_at":null,"body":"Hello,\r\n\r\nI'm running on EC2 instances (if it matters) and tried using both gliderlabs/registrator:latest and gliderlabs/registrator:v6.\r\nUsing Consul 0.5.2, and Docker 1.8.1\r\nall services are registered as 0.0.0.0:[port]\r\nwhen trying to use -ip, it is completely ignored.\r\ncommand:\r\ndocker run -d --restart=on-failure:3 --name registrator -v /var/run/docker.sock:/tmp/docker.sock gliderlabs/registrator:v6 consul://$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1):8500 -resync 10 -deregister on-success -ip $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)\r\n\r\nI should note that for some reason when inspecting containers HostIp is shown as 0.0.0.0 - I'm not sure why, but -ip should still work...\r\n\r\nThank you.\r\n"}}