Skip to content

Unable to connect to [172.25.0.4/<unresolved>:6379] #3047

Answered by ggivo
kioritanaka asked this question in Q&A
Discussion options

You must be logged in to vote

I had a similar issue in my env but tottaly forgot about it.
If I remember correctly, it was related to a bug in redis-cli when using 127.0.0.1.

So, instead of loopback address 127.0.0.1, I changed the nodes to use the MAC host's actual IP (192....).
I also :
started Redis nodes on the same port exposed in docker container
exposed also the cluster management port

I ended up with something like
https://gist.github.com/ggivo/ce80b12ab75b40668010eb335103dacc
redis-cli --cluster create 192.168.86.43:6380 192.168.86.43:6381 192.168.86.43:6382 --cluster-replicas 0 --cluster-yes

By the way, if you need a way to start test or dev env on MAC, we have prepared a docker image that runs all Redis nod…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ggivo
Comment options

Answer selected by kioritanaka
@tishun
Comment options

@kioritanaka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
for: stackoverflow A question that is better suited to stackoverflow.com
3 participants