ubuntu/cassandra
Cassandra, an open source NoSQL distributed database. Long-term versions maintained by Canonical.
50K+
The Apache Cassandra image has been discontinued.
This means that this image will no longer be released with new tags based in recent Ubuntu releases or new versions of Apache Cassandra. However, the active tags listed below will still receive security updates when needed.
Once the most recent tag listed below is deprecated, this repository will no longer receive security updates.
Current Apache Cassandra Docker Image from Canonical, based on Ubuntu. Receives security updates and rolls to newer Apache Cassandra or Ubuntu release. This repository is free to use and exempted from per-user rate limits.
Apache Cassandra is an open source NoSQL distributed database trusted by thousands of companies for scalability and high availability without compromising performance. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it a good platform for mission-critical data.
Up to 5 years of free security maintenance on LTS channels.
Up to 10 years of customer security maintenance from Canonical's restricted repositories.
Channel Tags | Supported until | Currently | Architectures |
---|---|---|---|
4.0-22.04_beta | - | Apache Cassandra 4.0 on Ubuntu 22.04 LTS | amd64 , arm64 , ppc64el , s390x |
track_risk |
Channel Tags shows the most stable channel for that track ordered stable
, candidate
, beta
, edge
. More risky channels are always implicitly available. So if beta
is listed, you can also pull edge
. If candidate
is listed, you can pull beta
and edge
. When stable
is listed, all four are available. Images are guaranteed to progress through the sequence edge
, beta
, candidate
before stable
.
If your usage includes commercial redistribution, or requires ESM or unavailable channels/versions, please get in touch with the Canonical team (or using rocks@canonical.com).
Launch this image locally:
docker run -d --name cassandra-container -e TZ=UTC -p 7000:7000 -p 7001:7001 -p 7199:7199 -p 9042:9042 -p 9160:9160 ubuntu/cassandra:4.0-22.04_beta
Access your Cassandra server with cqlsh localhost 9042
.
Parameters
Parameter | Description |
---|---|
-e TZ=UTC | Timezone. |
-p 7000:7000 | Expose itra-node communication |
-p 7001:7001 | Expose TLS itra-node communication |
-p 7199:7199 | Expose JMX |
-p 9042:9042 | Expose CQL |
-p 9160:9160 | Expose thrift service |
-v /local/path/to/data:/var/lib/cassandra | Volume to store Cassandra data |
-v /path/to/logs:/var/log/cassandra | Volume to store cassandra logs |
Testing/Debugging
To debug the container:
docker logs -f cassandra-container
To get an interactive shell:
docker exec -it cassandra-container /bin/bash
Works with any Kubernetes; if you don't have one, we recommend you install MicroK8s and microk8s.enable dns storage
then snap alias microk8s.kubectl kubectl
.
Download
cassandra-deployment.yml and set containers.cassandra.image
in cassandra-deployment.yml
to your chosen channel tag (e.g. ubuntu/cassandra:4.0-22.04_beta
), then:
kubectl apply -f cassandra-deployment.yml
You can now access the cassandra server on port 9042 (e.g., cqlsh localhost 9042)
If you find a bug in our image or want to request a specific feature, please file a bug here:
https://bugs.launchpad.net/ubuntu-docker-images/+filebug
Please title the bug "cassandra: <issue summary>
". Make sure to include the digest of the image you are using, from:
docker images --no-trunc --quiet ubuntu/cassandra:<tag>
These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.
Track | Version | EOL | Upgrade Path |
---|---|---|---|
Apache Cassandra 4.0 on Ubuntu 21.10 | 04/2022 | 4.0-22.04_beta | |
Apache Cassandra 4.0 on Ubuntu 21.04 | 01/2022 | ||
Apache Cassandra 4.0 on Ubuntu 20.04 LTS | 01/2021 | ||
track |
docker pull ubuntu/cassandra