gliderlabs / gliderlabs/docker-consul
Consul service registration and DNS
- Dominant language
- Shell
- Stars
- 1.1k
- Forks
- 270
- PR merge metrics
- No merged PRs in 30d
Description
First of all, if I run:
$ docker run -d -p 8400:8400 -p 8500:8500 -p 8600:53/udp -h consul --name=consul progrium/consul -server -bootstrap -ui-dir /ui
$ curl http://$(docker-machine ip local):8500/v1/catalog/service/consul
[{"Node":"consul","Address":"172.17.0.17","ServiceID":"consul","ServiceName":"consul","ServiceTags":[],"ServiceAddress":"","ServicePort":8300}]
Why is "ServiceAddress" blank?
Then, when I run one of my containers:
# cat /etc/resolv.conf
nameserver 172.17.42.1
nameserver 8.8.8.8
search service.consul
But:
# ping consul
ping: unknown host consul
I noticed in Dockerfile (master), its using docker 1.5. I am using 1.6. So I tried my own image build with 1.6 but I get the same results.
I can ping:
# ping 172.17.42.1
PING 172.17.42.1 (172.17.42.1) 56(84) bytes of data.
64 bytes from 172.17.42.1: icmp_seq=1 ttl=64 time=0.144 ms
and when I use registrator and run another service, that service _does_ resolve properly. So it seems that the consul container itself is the one having problems.
*\* I am on OSX, using docker-machine.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.