Skip to content

Instantly share code, notes, and snippets.

@nathanleclaire
Last active August 29, 2015 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nathanleclaire/c7c402f7a9889ca77b98 to your computer and use it in GitHub Desktop.
Save nathanleclaire/c7c402f7a9889ca77b98 to your computer and use it in GitHub Desktop.
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
done
for name in cb{1..5}; do
docker inspect -f '{{ .NetworkSettings.IPAddress }}' $name
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment