Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONSUL_BIND_INTERFACE not working? #152

Open
EMChamp opened this issue Feb 9, 2017 · 0 comments
Open

CONSUL_BIND_INTERFACE not working? #152

EMChamp opened this issue Feb 9, 2017 · 0 comments

Comments

@EMChamp
Copy link

EMChamp commented Feb 9, 2017

I am trying to set my bind interface through CONSUL_BIND_INTERFACE and it is pulling the correct IP for the interface but it is still giving me an error:

[fakeuser@fakeserver fakedir]$ docker run -it --rm --net=host -e "CONSUL_BIND_INTERFACE=eth1" consul consul agent -client=0.0.0.0 -ui -retry-join=server1.us.local -retry-join=server2.us.local -retry-join=server3.us.local -data-dir=/tmp/consul
==> Found address '100.73.14.171' for interface 'eth1', setting bind option...
==> Starting Consul agent...
==> Error starting agent: Failed to get advertise address: Multiple private IPs found. Please configure one.

When I run it and fill in the bind address manually it works:

[fakeuser@fakeserver fakedir]$ docker run -it --rm --net=host consul consul agent -ui -client=0.0.0.0 -bind=100.73.14.171 retry-join=server1.us.local -retry-join=server2.us.local -retry-join=server3.us.local -data-dir=/tmp/consul
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
           Version: 'v0.7.1'
         Node name: 'server1.local.us'
        Datacenter: 'dc1'
            Server: false (bootstrap: false)
       Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
      Cluster Addr: 100.73.14.171 (LAN: 8301, WAN: 8302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
             Atlas: <disabled>

I'm not sure why its not working as its getting the right bind address to pass to -bind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant