DirectorySecurity advisories
Sign in

Directory

cassandra logo

cassandra

Last changed
Get started with latest for free
docker pull cgr.dev/chainguard/cassandra

Need access to a specific version? Contact us.

Sign in for updates

Get notified of upcoming product changes, critical vulnerability notifications and patches and more.

Sign in
Versions
Overview
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Cassandra is a free and open-source, distributed, wide-column store, NoSQL database.

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/cassandra:latest

Deploying

Deploy a new instance of Cassandra using this image:

docker run -d \
  --name cassandra \
  -e CASSANDRA_START_RPC=true \
  -p 9042:9042 cgr.dev/chainguard/cassandra:latest

You can use nodetool status command to check if Cassandra is running properly. Note, it'll take a couple of minutes for Cassandra to become fully operational:

docker exec -it cassandra nodetool status

Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load        Tokens  Owns (effective)  Host ID                               Rack
UN  127.0.0.1  104.38 KiB  16      100.0%            0e75f72d-d273-4fac-807e-2b230583458c  rack1

cqlsh is available on the image:

docker exec -i cassandra cqlsh -e "
CREATE KEYSPACE testkeyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
USE testkeyspace;
CREATE TABLE users (user_id UUID PRIMARY KEY, name text);
INSERT INTO users (user_id, name) VALUES (uuid(), 'Chainguard');
SELECT * FROM users;
"

 user_id                              | name
--------------------------------------+------------
 3f13c6b4-4a22-4de7-a1f6-a3ac6e887ddb | Chainguard
 67e3be15-07f9-4dd6-b9b9-c00037d705ac | Chainguard

(2 rows)

For more information, refer to the Cassandra documentation.

Licenses

Chainguard Images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:

  • Apache-2.0

  • BSD-3-Clause

  • FTL

  • GCC-exception-3.1

  • GPL-2.0-only

  • GPL-2.0-or-later

  • GPL-3.0-or-later

View more

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Category
application
databases

Products

Chainguard Images

© 2024 Chainguard, Inc.