Persisting data

DataStax provided OpsCenter images expose the data volume /var/lib/opscenter.

DataStax provided OpsCenter images expose the data volume /var/lib/opscenter.

Tip: See Docker volumes doc for more information on mounting Volumes.
  1. Create a directory on the Docker host.
  2. Bind mount the local directory to the exposed Volume /var/lib/opscenter by starting the container with the -v flag.
    docker run -e DS_LICENSE=accept \
    -d -v /dse/data/opscenter:/var/lib/opscenter \
    datastax/dse-opscenter \
    --name my-opscenter

Procedure

  1. Create a directory on the Docker host.
  2. Bind mount the local directory to the exposed Volume /var/lib/opscenter by starting the container with the -v flag.
    docker run -e DS_LICENSE=accept \
    -d -v /dse/data/opscenter:/var/lib/opscenter \
    datastax/dse-opscenter \
    --name my-opscenter