Attaching to a container

Use the docker exec -it container_name command to attach to a container and run DataStax Enterprise (DSE) tools and other operations.

Opening an interactive BASH shell

If the container is running in the background (using the -d option), use the following command to open an interactive BASH shell:

docker exec -it container_name BASH

To exit the shell without stopping the container, type exit.

Opening an interactive CQL shell (cqlsh)

Use the following command to open the cqlsh prompt.

docker exec -it container_name cqlsh

To exit the shell without stopping the container, use Ctrl + P + Q.

Viewing logs

View DSE logs using the docker log command.

docker logs my-dse

Using DSE tools

Use the docker exec command to run other tools. For example:

docker exec -it my-dse nodetool status

See the DSE documentation for further information.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000,