Open cookandy opened 7 years ago
@cookandy @here I am looking for the same as above. Is there a way we can make registrator use the Host IP address in the ServiceID (container ID)?
+1 if we can edit just the service id part
because in a swarm environment this is uniq to the host
Hello,
According to this section of the documentation, the UniqueID or
ServiceID
uses the machine's hostname in the ID:Is it possible to make registrator use the IP address in the
ServiceID
, instead of the hostname? I have tried starting registrator with-ip <IP address>
, but it still seems to register services in Consul with the hostname.I am using Registrator
v7
.Thanks!