我可以查询我的远程领事容器的其余服务,即
curl my-ip:8500/v1/catalog/services
{"consul":[],"nginx-80":[],"redis":[]}
curl my-ip:8500/v1/catalog/service/redis
[{"Node":"consul","Address":"172.17.0.3","ServiceID":"954f32f077ed:redis:6379","ServiceName":"redis","ServiceTags":null,"ServiceAddress":"","ServicePort":32768}]
但是当我尝试领事的dns界面时
dig @my-ip -p 8600 redis.service.consul
; <<>> DiG 9.8.3-P1 <<>> @45.33.119.251 -p 8600 redis.service.consul
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
我不确定我的查询格式是否不正确,或者我是如何启动容器的。