Managing the configuration

DataStax provided OpsCenter images have a startup script that replaces the configuration files found in a mounted volume.

DataStax provided OpsCenter images have a startup script that replaces the configuration files found in volume (/conf) with the corresponding file in the image. This allows you to manage the configuration from the host computer by bind mounting the local directory that contains OpsCenter configuration files to the exposed conf volume.

Procedure

  1. Create a directory on the Docker host.
  2. Add the configuration files. The file name must match a corresponding configuration file in the image and include all the required values, for example opscenterd.conf. For a full list of config files see Opscenter Configuration File list.
  3. Bind mount the local directory to the exposed Volume /conf by starting the container with the -v flag.
    docker run -e DS_LICENSE=accept \
    -d -v /dse/conf/opscenter:/conf \
    datastax/dse-opscenter \
    --name my-opscenter