• 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.7 Docker
  • Managing the configuration
  • Using the DSE configuration volume

Using the DSE configuration volume

Docker images provided by DataStax include a startup script that swaps DataStax Enterprise (DSE) configuration files found in the /config volume directory with the configuration file in the default location on the container.

Procedure

  1. Create a directory on your local host to store the configuration files.

  2. Add the configuration files to replace in the container. The file name must match a corresponding configuration file in the image and include all required values. For example cassandra.yaml, dse.yaml, opscenterd.conf.

    See the GitHub pages for a full list of configuration files.

    • DSE

    • OpsCenter

    • Studio

  3. Mount the local directory to the exposed /config directory during startup.

    For example:

    docker run -v /dse/conf:/config
  4. Start the container.

    For example, to start a transactional node:

    docker run -e DS_LICENSE=accept \
    --name my-dse \
    -v /dse/config:/config datastax/dse-server \
    -d datastax/dse-server

    Setting the DS_LICENSE environment variable signals your acceptance of the DataStax terms of service and is required for the software to start.

  5. After you make changes or add config files to the /config volume, restart the container to propagate the changes to the database.

    docker restart container_name

    Restarting the container restarts DSE.

Managing the configuration Using environment variables

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