Skip to content

Instantly share code, notes, and snippets.

Embed
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
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.