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

DataStax Docker Guide

    • Quickstart
    • Recommended settings
    • 6.8 Docker
      • Getting started with DataStax and Docker
      • Prerequisites
      • Creating and starting Docker containers
        • Creating a DataStax Enterprise container
        • Creating an OpsCenter container
        • Creating a Studio container
        • Docker run options
      • Managing the configuration
        • Using the DSE configuration volume
        • Using environment variables
        • Persisting data
        • Exposing public ports
        • Volumes and data directories
      • Attaching to a container and opening a command line
      • Using Docker compose for automated provisioning
      • Building custom Docker images
      • Getting help with Docker
      • Docker known issues
      • Licensing
    • 6.7 Docker
      • Getting started with DataStax and Docker
      • Prerequisites
      • Creating and starting Docker containers
        • Creating a DataStax Enterprise container
        • Creating an OpsCenter container
        • Creating a Studio container
        • Docker run options
      • Managing the configuration
        • Using the DSE configuration volume
        • Using environment variables
        • Persisting data
        • Exposing public ports
        • Volumes and data directories
      • Attaching to a container and opening a command line
      • Using Docker compose for automated provisioning
      • Building custom Docker images
      • Getting help with Docker
      • Docker known issues
      • Licensing
    • 6.0 Docker
      • Getting started with DataStax and Docker
      • Prerequisites
      • Creating and starting Docker containers
        • Creating a DataStax Enterprise container
        • Creating an OpsCenter container
        • Creating a Studio container
        • Docker run options
      • Managing the configuration
        • Using the DSE configuration volume
        • Using environment variables
        • Persisting data
        • Exposing public ports
        • Volumes and data directories
      • Attaching to a container and opening a command line
      • Using Docker compose for automated provisioning
      • Building custom Docker images
      • Getting help with Docker
      • Docker known issues
      • Licensing
    • 5.1 Docker
      • Getting started with DataStax and Docker
      • Prerequisites
      • Creating and starting Docker containers
        • Creating a DataStax Enterprise container
        • Creating an OpsCenter container
        • Creating a Studio container
        • Docker run options
      • Managing the configuration
        • Using the DSE configuration volume
        • Using environment variables
        • Persisting data
        • Exposing public ports
        • Volumes and data directories
      • Attaching to a container and opening a command line
      • Using Docker compose for automated provisioning
      • Building custom Docker images
      • Getting help with Docker
      • Docker known issues
      • Licensing
    • DataStax Docker Images
  • DataStax Docker Guide
  • 6.0 Docker
  • Attaching to a container and opening a command line

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.

Volumes and data directories Using Docker compose for automated provisioning

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