docker - How to connect nsqd and nsqlookupd containers? -
i trying connect these 2 docker containers:
nsqd: https://registry.hub.docker.com/u/mreiferson/nsqlookupd/ nsqlookupd: https://registry.hub.docker.com/u/mreiferson/nsqlookupd/
these official docker containers nsqd , nsqlookupd.
the problem when create topic in nsqd, not see topic in nsqlookupd.
i.e.
curl -d 'hello world 1' 'http://172.17.42.1:4151/put?topic=test' // create test topic curl http://172.17.42.1:4151/stats // shows have messages topic = test curl http://172.17.42.1:4161/topics // ??? shows have no topic.
i start 2 containers (172.17.42.1 docker host ip):
docker run --name lookupd -p 4160:4160 -p 4161:4161 mreiferson/nsqlookupd docker run --name nsqd -p 4150:4150 -p 4151:4151 -e broadcast_address=172.17.42.1:4160 mreiferson/nsqd
i'm connecting 2 containers incorrectly. how go connecting them properly?
i ended creating own nsqd docker container solve issue: https://github.com/rexposadas/nsqd
Comments
Post a Comment