News Feeds

No results for 'undefined'
Powered by Algolia

Can I connect a container to a Cassandra instance with the Docker bridge network mode?


Author: dhughes

Originally Sourced from: https://stackoverflow.com/questions/63897865/can-i-connect-a-container-to-a-cassandra-instance-with-the-docker-bridge-network

I have a container that I need to connect to a Cassandra instance that is not running in a container. Moreover, the container is running with the Docker bridge network mode as I need to isolate the container network. I have obtained the docker network IP as instructed here. Then I have taken that IP and applied it to the cassandra.yaml config file as instructed here. However, I am still getting an error from the container that it cannot connect to the Cassandra instance. Looks like this is possible for MqSql as mentioned here. Is it possible to achieve this? If so, any pointers on what is wrong?