I am running a Redis Cluster of 48 instances spread across 6 physical servers. These redis instances are running in docker containers.
The cluster is designed as below:
1) 4 Docker containers for Redis Master are running on each of these 4 servers (M1, M2, M3, M4).
2) Each master has 2 slaves. So that means 16 Docker Containers for Redis Slave, running on rest of two servers(S1, S2).
I am facing an issue while fetching the key. For example I am fetching a key which is stored on M1D2 using the redis-cli from the M1D1 it gives me the following error.
# echo "get a " | redis-cli -c -h 172.16.84.181 -p 6351 -> Redirected to slot  located at 172.17.0.1:6350 Could not connect to Redis at 172.17.0.1:6350: Connection refused Could not connect to Redis at 172.17.0.1:6350: Connection refused
I am quite sure that this issue related to Docker. Is it possible to make the Docker use Base Host eth0 IP for redis, rather than using docker0 IP?