gliderlabs / gliderlabs/docker-consul
CONSUL_BIND_INTERFACE not working?
- Dominant language
- Shell
- Stars
- 1.1k
- Forks
- 270
- PR merge metrics
- No merged PRs in 30d
Description
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:
```
I'm not sure why its not working as its getting the right bind address to pass to -bind.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.