Hi guys, I have an cassandra container and an nodejs + cassandra microservice image in Docker.
I want to link these two containers, so after running poklet/cassandra image with conatiner name cassandra-3, for linking I used command,
docker run -it -p 9000:8080 --link cassandra-3:cass siddharth67/nodejs_cassandra ./bin/bash
But after running my service, it is not able to connect to the cassandra DB.
Error,
Cassandra driver was not able to connect to 127.0.0.1: Error: All host(s) tried for query failed. First host tried, 127.0.0.1:9042: Error: connect ECONNREFUSED. See innErrors.
The port 9042 is exposed.
Any help is appreciated.
Thanks