From 33f5646c0a80f9789a4ab4d398995c8ef8ee6eab Mon Sep 17 00:00:00 2001 From: Docker Library Bot Date: Tue, 1 Dec 2015 16:01:32 -0800 Subject: [PATCH] Run update.sh --- cassandra/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cassandra/README.md b/cassandra/README.md index 562d1f80..3aba2120 100644 --- a/cassandra/README.md +++ b/cassandra/README.md @@ -46,6 +46,12 @@ $ docker run --name some-cassandra2 -d -e CASSANDRA_SEEDS="$(docker inspect --fo ... where `some-cassandra` is the name of your original Cassandra Server container, taking advantage of `docker inspect` to get the IP address of the other container. +Or you may use the docker run --link option to tell the new node where the first is: + +```console +$ docker run --name some-cassandra2 -d --link some-cassandra:cassandra cassandra:tag +``` + For separate machines (ie, two VMs on a cloud provider), you need to tell Cassandra what IP address to advertise to the other nodes (since the address of the container is behind the docker bridge). Assuming the first machine's IP address is `10.42.42.42` and the second's is `10.43.43.43`, start the first with exposed gossip port: