From 2b956e7418981a22a80ded736d657b5dc6797abc Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Tue, 30 Oct 2018 17:34:08 +0100 Subject: [PATCH] cassandra: Update inspect format --- cassandra/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cassandra/content.md b/cassandra/content.md index dbd431eb3..dbcd55b3e 100644 --- a/cassandra/content.md +++ b/cassandra/content.md @@ -31,7 +31,7 @@ $ docker run --name some-app --link some-%%REPO%%:%%REPO%% -d app-that-uses-cass Using the environment variables documented below, there are two cluster scenarios: instances on the same machine and instances on separate machines. For the same machine, start the instance as described above. To start other instances, just tell each new node where the first is. ```console -$ docker run --name some-%%REPO%%2 -d -e CASSANDRA_SEEDS="$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' some-%%REPO%%)" %%IMAGE%%:tag +$ docker run --name some-%%REPO%%2 -d -e CASSANDRA_SEEDS="$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' some-%%REPO%%)" %%IMAGE%%:tag ``` ... where `some-%%REPO%%` is the name of your original Cassandra Server container, taking advantage of `docker inspect` to get the IP address of the other container.