Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Kick up a couchbase cluster, print IP addresses for containers
docker run -d -p 11210:11210 -p 11211:11211 -p 8091:8091 -p 8092:8092 --name cb1 dustin/couchbase
for name in cb{2..5}; do
docker run -d --name $name dustin/couchbase
for name in cb{1..5}; do
docker inspect -f '{{ .NetworkSettings.IPAddress }}' $name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment