blob: 7f046393bab60ca1c75b952799710372613c4bb4 [file] [log] [blame]
khenb95fe9a2016-10-05 11:15:25 -07001#!/bin/bash
2
3CONTAINERS=$(docker ps | grep 9092 | awk '{print $1}')
4BROKERS=$(for CONTAINER in $CONTAINERS; do docker port $CONTAINER 9092 | sed -e "s/0.0.0.0:/$HOST_IP:/g"; done)
5echo $BROKERS | sed -e 's/ /,/g'