Cassandra docker access from host -


this compose file,i'm binding cassandra/container ports can't access cassandra container cqlsh host.

version: '2'  services:   cassandra:     image: cassandra:3.0.12     ports:         - 9042:9042         - 9160:9160 other-services.... 

docker output says:

cassandra_1     | info  21:00:42 starting listening cql clients on /0.0.0.0:9042 (unencrypted)... 

ports:

$ docker port 00269f36bc54 9042/tcp -> 0.0.0.0:9042 9160/tcp -> 0.0.0.0:9160 
  1. if cqlsh in host machine doesn't connect cassandra container.
  2. if netstat command don't see entry listening port 9042...


Comments