A Docker image for running a single-node Cassandra cluster.
- Dockerhub repo: mashape/cassandra
To start a container running this image:
$ docker run -d -p 9042:9042 --name cassandra mashape/cassandra
This container will expose your cluster on your host port 9042
, the default Cassandra port.
This container stores the Cassandra configuration (usually in /etc/cassandra/
) in a Data Volume. You can mount this volume from your host machine by doing so:
$ docker run -d \
-v /path/to/your/etc/cassandra/:/etc/cassandra \
-p 9042:9042 \
--name cassandra \
mashape/cassandra
This container also stores the actual storage data (usually in /var/lib/cassandra/
) in a Data Volume. You can mount this volume from your host machine by doing so:
$ docker run -d \
-v /path/to/your/var/lib/cassandra/:/var/lib/cassandra \
-p 9042:9042 \
--name cassandra \
mashape/cassandra
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.