docker-rediscluster icon indicating copy to clipboard operation
docker-rediscluster copied to clipboard

Problem with DOCKER_IP variable

Open fernandoneto opened this issue 9 years ago • 2 comments

Hi. when i run de script to start the cluster i dont get the docker host ip

DOCKER_IP=$(ifconfig docker0 | grep 'inet addr:' | cut -d: -f2  | awk '{ print $1}')

echo "DOCKER IP : $DOCKER_IP"

and after sometime the process fail. so i found the problem was the DOCKER_IP variable and i have to change it to this

DOCKER_IP=$(ifconfig docker0 | grep 'inet end.:' | cut -d: -f2 | awk '{ print $1}')

so if anyone facing the same problem provably here you have solution

fernandoneto avatar Jul 16 '15 12:07 fernandoneto