Before you begin, ensure you have Docker Desktop installed on your machine (available for Windows, Mac, and Linux). 2. Download the Cassandra Docker Image
Confirm the image was downloaded successfully by running docker images . 3. Run Your First Cassandra Container
To download (pull) the official image from Docker Hub , open your terminal and run: docker pull cassandra:latest Use code with caution. download cassandra docker image
How to Download and Run the Cassandra Docker Image Apache Cassandra is a highly scalable, high-performance NoSQL database designed to handle large amounts of data across many servers. Using Docker is the fastest way to get a Cassandra instance up and running for development or testing.
To interact with your database, use the . You can run this directly within your container: Apache Cassandra Quickstart guide Before you begin, ensure you have Docker Desktop
--name my-cassandra : Assigns a custom name to your container for easy management. -d : Runs the container in "detached" mode (background). cassandra:latest : Specifies the image to use. 4. Connect to Cassandra via CQLSH
Once the image is downloaded, you can start a single-node Cassandra instance with a simple command: docker run --name my-cassandra -d cassandra:latest Use code with caution. Using Docker is the fastest way to get
If you need a specific version, such as version 4.1, use docker pull cassandra:4.1 .
This guide covers everything from the initial to running your first container and persisting data. 1. Prerequisites