Connection refused error with cassandra and docker-py
问题 so basically I am trying to run a cassandra docker instance (2.1) and run cqlsh commands following instructions from https://hub.docker.com/_/cassandra/. $ docker run --name some-cassandra -d cassandra:2.1 $ docker run -it --link some-cassandra:cassandra --rm cassandra sh -c 'exec cqlsh "$CASSANDRA_PORT_9042_TCP_ADDR"' or $ docker run -it --link some-cassandra:cassandra --rm cassandra cqlsh cassandra Manually everything works fine as expected , but when trying to automate this flow with