• Glossary
  • Support
  • Downloads
  • DataStax Home
Get Live Help
Expand All
Collapse All

DataStax Docker Guide

  • Overview
    • About Docker and DataStax
    • Docker support
    • Docker known issues
    • Licensing
  • Getting started
    • Quickstart
  • Installing
    • Install
    • Create and start Docker containers
  • Developing
    • Building custom Docker images
  • Managing
    • Configuring
      • Recommended settings
      • Exposing public ports
      • Using environment variables
      • Using the DSE configuration volume
      • Mount data volumes
    • Operating
      • Using Docker compose for automated provisioning
      • Logging into a container
  • Reference
    • Docker run options
  • DataStax Docker Guide
  • Managing
  • Operating
  • Logging into a container

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.

Using Docker compose for automated provisioning Docker run options

General Inquiries: +1 (650) 389-6000 info@datastax.com

© DataStax | Privacy policy | Terms of use

DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

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.

landing_page landingpage