liveBook · Manning

Docker

As explained in ScyllaDB in Action

Docker is a platform for building, packaging, and running applications in isolated containers.

Docker runs packaged applications in isolated containers through a friendly interface to a virtual machine. It provides a practical way to run ScyllaDB locally on systems that cannot run ScyllaDB directly. section 2.1

A Docker-based ScyllaDB setup uses named containers, a dedicated network, hostnames, detached execution, and port forwarding. These settings let several nodes communicate while remaining manageable from the command line. section 2.1.1

Launching a local cluster

Create scylla-network, then run containers named scylla-1, scylla-2, and scylla-3 with the ScyllaDB 5.4 image. Docker keeps them running in the background and exposes ports for later application connections. section 2.1.1

Docker supports the practical operations needed for the experiment:

  • Create a private network so containers resolve one another by DNS names. section 2.1.1
  • Inspect running containers with docker ps and follow startup output with docker logs. section 2.4.1 section 2.1.1
  • Stop an individual container with docker stop to simulate a node failure. section 2.4.1
Figure 2.1 Launching three Scylla nodes in Docker containers lets you test a cluster on a local machine.
figure

A figure shows three ScyllaDB nodes running as Docker containers on one local machine. section 2.1

How ScyllaDB in Action covers it

How deep it goes
Explains networks, container names, hostnames, detached mode, port forwarding, logs, inspection, and shutdown, but not Docker internals.
Examples
Uses a three-node ScyllaDB cluster, docker network create, docker run, docker logs, docker ps, and docker stop.
What it assumes
Assumes command-line access and Docker installation, while teaching the required network and container commands through execution.
What you can do after
Operate/configure a local ScyllaDB cluster, inspect its containers, and stop a node to observe failure behavior.
How it connects
Connects Docker with containers, virtual machines, ScyllaDB, distributed clusters, DNS names, port forwarding, and consistency testing.

Also explained in

Compare how 26 books explain Docker →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ScyllaDB in Action. The section links point to the parts of the book it draws on.