• 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.8 Docker
  • Managing the configuration
  • Using environment variables

Using environment variables

Configure the DataStax Enterprise (DSE) Docker image by setting environment variables when the container is created. Use the docker run command -e option.

Variable Setting Description Default

DS_LICENSE

accept

To show and acknowledge the license, set the variable DS_LICENSE to the value accept.

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

LISTEN_ADDRESS

IP_address

IP address to listen for connections from other nodes.

Defaults to the container IP address.

BROADCAST_ADDRESS

IP_address

IP address to advertise to other nodes.

Defaults to the same value as LISTEN_ADDRESS.

NATIVE_TRANSPORT_ADDRESS

IP_address

IP address to list for client and driver connections.

Default: 0.0.0.0.

NATIVE_TRANSPORT_BROADCAST_ADDRESS

IP_address

IP address to advertise to clients and drivers.

Defaults to the same value as BROADCAST_ADDRESS.

SEEDS

IP_address

Comma-delimited list of seed nodes for the cluster.

Defaults to the node BROADCAST_ADDRESS.

START_NATIVE_TRANSPORT

boolean

Determines whether to start the Thrift RPC server.

If not set, the default value is preserved in the cassandra.yaml file.

CLUSTER_NAME

string

Name of the cluster.

Default: Test Cluster.

NUM_TOKENS

int

Number of tokens randomly assigned to the node.

Default: 8.

DC

string

Datacenter name.

Default: Cassandra.

RACK

string

Rack name.

Default: rack1.

OPSCENTER_IP

IP_address

Address of the OpsCenter instance to use for DSE management.

The value can be specified by linking the OpsCenter container using opscenter as the name.

JVM_EXTRA_OPTS

string

Sets a custom value for the JVM heap using -Xmx and -Xms.

LANG

string

Sets a custom locale.

SNITCH

string

Sets the snitch implementation this node will use.

The value is set in the endpoint_snitch parameter in cassandra.yaml.

Using the DSE configuration volume Persisting data

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