Volumes and data directories
List of exposed volumes so that underlying directories can be mounted.
DataStax exposes the following volumes so that underlying directories can be mounted. If these volumes are not mounted, then sub-directories will be unavailable. For example, by mounting the /var/lib/cassandra directory, the /data, /commit_logs, /saved_caches directories will be available.
Tip: To persist data, create the directories on the local host, and then map the
local directory to the corresponding volume using the
docker run -v
flag:docker run -v local_directory:container_volumeSee Persisting data.
See using volumes in the Docker documentation.
Directory | Description |
---|---|
/var/lib/cassandra |
Database data |
/var/log/cassandra |
Database logs |
/config |
Custom configuration files |
Studio
Directory | Description |
---|---|
/var/lib/datastax-studio |
DataStax Studio data |