Last active
August 29, 2015 14:04
-
-
Save nathanleclaire/c7c402f7a9889ca77b98 to your computer and use it in GitHub Desktop.
Kick up a couchbase cluster, print IP addresses for containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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