title: Cassandra docker access from host
body: <p>this is my compose file,I'm binding the Cassandra/container ports but I can't access the Cassandra container with the cqlsh from my Host.</p>
  
  <pre><code>version: '2'
  
  services:
    cassandra:
      image: cassandra:3.0.12
      ports:
          - 9042:9042
          - 9160:9160
  other-services....
  </code></pre>
  
  <hr>
  
  <p>Docker output says:</p>
  
  <pre><code>cassandra_1     | INFO  21:00:42 Starting listening for CQL clients on /0.0.0.0:9042 (unencrypted)...
  </code></pre>
  
  <p>Ports:</p>
  
  <pre><code>$ docker port 00269f36bc54
  9042/tcp -&gt; 0.0.0.0:9042
  9160/tcp -&gt; 0.0.0.0:9160
  </code></pre>
  
  <ol>
  <li>If I do <code>cqlsh</code> in my host machine doesn't connect to cassandra container.</li>
  <li>If I do a <code>netstat</code> command I don't see any entry listening for the port 9042...</li>
  </ol>