Closed itn3rd77 closed 8 years ago
Nope. You shouldn't need --consul=${CONSUL_HTTP_ADDR}
. Check out commit https://github.com/CiscoCloud/consul-cli/commit/1132e7285d9a365084b247e085c28463ba6c0d93. That should fix the issue.
Tested https://github.com/CiscoCloud/consul-cli/commit/1132e7285d9a365084b247e085c28463ba6c0d93 and works as expected!
Thanks for the quick fix!
seems not to be part of the 2.0 release, isnt it?
(root:nginx_base)➜ / echo $CONSUL_HTTP_ADDR
consul:8500
(root:nginx_base)➜ / consul-cli kv read --recurse service
Get http://127.0.0.1:8500/v1/kv/service?recurse=: dial tcp 127.0.0.1:8500: getsockopt: connection refused
Hi!
The documentation stated the following:
I have exported the environment variable CONSUL_HTTP_ADDR but consul-cli is still using the default 127.0.0.1:8500:
I have use
consul-cli status-leader --consul=${CONSUL_HTTP_ADDR}
to get things working. Is this what the documentation is saying?Regards Ingo