Add -host-ip argument for cases when the hostname resolves to docker0

The containerized version of registrator sets the IP address of the service as the hostname, which resolves to the docker0 address, and not the externally visible address. Added -host-ip to allow that to be fixed. 

Also added a log message to indicate the backend + uri, since I kept setting it wrong and it would hang because the uri was wrong. :) 
looks a lot like this, but something like "var hostIp = &flag.String(...)"


On Sat, Jul 26, 2014 at 11:11 PM, Dustin Spicuzza <notifications@github.com>
wrote:

> In registrator.go:
>
> >  	return factory(uri)
> >  }
> >
> >  func main() {
> > +	
> > +
> > +	hostIp := flag.String("host-ip", "", "IP for ports mapped to the host")
>
> This would be my lack of go knowledge. I'll go look it up.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/progrium/registrator/pull/4/files#r15437339>.
>



-- 
Jeff Lindsay
http://progrium.com