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