VOOZH about

URL: https://thenewstack.io/how-to-run-a-cassandra-operation-in-docker/

⇱ How to Run a Cassandra Operation in Docker - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-02-15 08:26:20
How to Run a Cassandra Operation in Docker
contributed,sponsor-datastax,sponsored,sponsored-post-contributed,
Containers / Data / Kubernetes / Open Source

How to Run a Cassandra Operation in Docker

A guide to becoming familiar with Docker and learn how to deploy a cloud-native application in containers.
Feb 15th, 2022 8:26am by David Chung
👁 Featued image for: How to Run a Cassandra Operation in Docker
Image provided by DataStax.
DataStax sponsored this post.
David Chung
David Chung is in charge of enterprise education at DataStax. He has over 30 years industry experience in embedded/real-time systems, mobile development, enterprise applications and big data.

Containers thrive in a world of modern applications that demand faster delivery, better portability and seamless scalability. Gartner predicts that by 2022, more than 75% of global organizations will be running containerized applications in production.

The steam behind this growing trend is none other than Docker. Docker is an open source containerization platform that lets developers package applications into containers that include everything they need to run in different environments. For enterprises, however, it can be tricky to manage individual Docker containers at scale, giving way to the popular container orchestration platform: Kubernetes (K8s).

In short, Kubernetes makes it easy to deploy, manage and scale containers — and is the dominant orchestration platform used in enterprises today. This makes learning Kubernetes a must for every budding application developer; but first, you need to understand containers and Docker.

In this Cassandra Operations in Docker workshop, you’ll become familiar with Docker and learn how to deploy a cloud native application in containers. You’ll also dabble in a few other technologies that make app development easier:

  • Spring Boot to pull the backend app image from Docker.
  • Angular web application to run the frontend app in Docker.
  • Apache Cassandra as your distributed, NoSQL database.

To wrap it all up, we’ll give you a hands-on exercise where you’ll go through each step of deploying a Cassandra-based app in Docker, all within an interactive training environment.

Let’s begin.

Understanding Docker

Let’s start from the top. A container is a lightweight software package that bundles everything needed to run an application: code, runtime, system tools, system libraries and settings. This makes it easy for developers to run an app quickly and reliably in different production environments.

But wait a minute, how are containers different from virtual machines (VMs)?

While containers virtualize the operating system, VMs emulate hardware like CPU, disk and networking devices to get around limited infrastructure. Simply put, containers are lighter, more efficient and more portable than VMs.

👁 Image

Figure 1. Containers (left) and virtual machines (right). (Source)

Now that’s clear, we can dive into Docker.

To recap, the Docker platform lets you package your app within an all-in-one container, allowing you to:

  • Develop, ship and run software faster and more consistently.
  • Easily scale up or down to dynamically manage workloads.
  • Run more workloads on the same hardware.
  • Deploy apps locally, on-premises, in the cloud or in a combination of environments.

Docker uses a client-server architecture, where the Docker client talks to the Docker daemon. The daemon listens for API requests, manages Docker objects (such as images, containers, networks, plugins), and takes care of building and running your containers.

Here’s how it all comes together.

👁 Image

Figure 2. Docker architecture. (Source)

To get you up to speed with the different parts, we’ll briefly cover a few concepts as well as the Docker objects and clients you’ll be using in this workshop.

Docker Images

A Docker image is a read-only file that combines the application and the environment needed to run it (libraries, tools, files, etc.), and acts as a set of instructions to build a Docker container.

It’s like a template that’s often based on another image with some customization. For example, you could build an image from a Node.js image, and it’ll bring along everything needed to run your application.

These images are typically stored in a Docker registry, which can be private for your own use, or you can use the public Docker Hub where you can find and reuse images stored by others.

Dockerfiles

Dockerfiles define the steps to build an image. It lays out the commands needed to build the application and can even download, install and run the software for it to run.

To create your own image, you can use the build command from the Docker command line interface (CLI). You can make changes to a specific image layer in the Dockerfile and only that layer will update when you rebuild the image. This is one of the reasons images are so lightweight and efficient.

Docker Networks

In short, images run in containers and containers communicate through Docker networks.

What makes Docker networks so powerful is you can connect applications running in Docker containers with other applications, even if they’re not deployed on Docker or are on different operating systems. It does this by creating a platform-agnostic network for containers so they can communicate with each other, and you can manage them whether they’re on Linux, Windows, iOS or a mix of them.

Docker Compose

Docker Compose is a client that lets you manage multicontainer applications. You can use a docker-compose.yaml file to configure all your app’s services with simple commands. You can use this tool in production, staging, development and testing environments.

So that’s the theoretical part done, but now comes the good bit: using it yourself.

DataStax, an IBM company, provides the real-time vector data tools that Gen AI apps need, with seamless integration with developers’ stacks of choice.
Learn More
The latest from DataStax

Scenario: Deploy a Sample App on Docker

Ready to give it a try? We set up an interactive Katacoda scenario so you can safely put theory into practice while learning how to run a Cassandra-based application in Docker.

In this scenario, you’ll deploy an Angular frontend app, a Spring Boot backend app and a Cassandra cluster in Docker containers. It’ll only take you 15 minutes, and you’ll learn how to:

  • Create a Docker network.
  • Pull images from Docker Hub and run them in containers.
  • Deploy a Cassandra cluster.
  • Deploy a Spring Boot microservice.
  • Test the microservice-to-database connection.
  • Deploy the Angular web application.
  • Test the web application.
  • Shut down the containers.
  • Re-create the application using Docker Compose.

It might sound like a lot, but don’t worry, we’ll guide you step by step. So roll up your sleeves, flex your fingers, and scroll to the bottom of the Running a Cassandra Application in Docker page and click “Start Scenario.”

Once you’ve completed it, you can jump into the world of Kubernetes to learn all about managing containers at scale — a must-know in any enterprise. A good starting point is our first workshop on deploying a sample application with Cassandra in Kubernetes. Keep the momentum going!

This article is part of a learning series DataStax created to show you how to successfully run Apache Cassandra in Kubernetes. Each workshop helps you level up a new skill and introduces you to all the concepts you need to pass the K8ssandra Certification Exam

DataStax, an IBM company, provides the real-time vector data tools that Gen AI apps need, with seamless integration with developers’ stacks of choice.
Learn More
The latest from DataStax
TRENDING STORIES
David Chung is in charge of enterprise education at DataStax. He has over 30 years industry experience in embedded/real-time systems, mobile development, enterprise applications and big data.
Read more from David Chung
DataStax sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma, Simply, Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.