问题
I manually cassandra
which works fine (Standalone). Now I am experimenting with installing cassandra
using docker
. I downloaded Cassandra
image using command (following the steps on https://hub.docker.com/_/cassandra)
docker pull 3.11.4
I am able to start the images using docker run image_id
The images listens on Starting listening for CQL clients on /0.0.0.0:9042 (unencrypted)...
but I am not able to connect to it using cqlsh
of my Standalone but it is not able to connect with it.
C:\Users\manuc>cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(10061, "Tried connecting to [('127.0.0.1', 9042)]. Last error: No connection could be made because the target machine actively refused it")})
C:\Users\manuc>
Then I thought I might be able to change the listen
port of docker/cassandra
by explicitly mentioning CASSANDRA_LISTEN_ADDRESS
docker run -e CASSANDRA_LISTEN_ADDRESS=127.0.0.1 ca795bbd8fd7
but I am still unable to connect using cqlsh
. Cassandra still start at 0.0.0.0:9042
Why am I not able to change the listening ip address?
来源:https://stackoverflow.com/questions/62178614/unable-to-start-cassandra-docker-image-on-win10-home