docker-rediscluster
docker-rediscluster copied to clipboard
Problem with DOCKER_IP variable
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