Unable to start Cassandra docker image on Win10 Home

三世轮回 提交于 2020-06-17 13:17:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!