gliderlabs / registrator

Service registry bridge for Docker with pluggable adapters
http://gliderlabs.com/registrator
MIT License
4.66k stars 912 forks source link

Expecting one service instance when providing the host ip #667

Open dyeshurun opened 5 years ago

dyeshurun commented 5 years ago

I am running a container named "demo-service" and when I am querying the consul for its instances I get 2 instances - one with the provided ip and one with the docker internal ip. I expected to have only one instance with the provided ip (note that when I don't provide it I only get one instance with the internal ip)

Is this the expected behavior? is there a way to get only one instance?