Open wangfakang opened 8 years ago
same issue here, with consul backend. I get 127.0.0.1 even when specifying --net host. Should i try a previous version ? Anyway to get troubleshootings logs for local ip discovery ?
Ditto
Did someone found the solution to this ?
@MBuffenoir Because useing --net=host and registrator default flag -internal=0(it's will register service ip is 'registrator' host ip adds to consul or etcd), and you can use -internal=1.
OK my mistake I was placing the -internal argument after the consul: argument and it was not interpreted correctly. All functionning properly now.
I have some question that when i use --net=host for docker run registrator. I get services ip is 127.0.1.1 from consul. Thx. some results: curl "127.0.0.1:8500/v1/catalog/service/redis" | jq .
registrator image from: gliderlabs/registrator:latest consul image from: gliderlabs/consul-server