Running this image (v7.0.10) from docker in Mac results in a connection refused #158
-
Hi @Grokzen, I am using the following command to up the redis cluster on my local machine as suggested in your README.md: Then I try to access the cluster using:
After which it disconnects. I am running this on my Macbook (Ventura 13.4). What is possibly wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Why are you trying to connect to port 6000? there is nothing running on that port unless you have changed around something in your dockerfile. Redis cluster runs om ports 7000-7005 and nothing else if you use the default image from me. So in your redis-cli call try to connect to the port that the error code responds with |
Beta Was this translation helpful? Give feedback.
Try with
docker run -e "INITIAL_PORT=6000" -e "IP=0.0.0.0" -p 6000-6005:6000-6005 grokzen/redis-cluster:7.0.10
I don't think just exporting it on your host machine really pushes it down into the container unless you send it in explicitly.
If you can't connect to the node then you have to go inside the container into bash and run something like
netstat -anutp
to see what ports the service really uses because it seems that it is not setting up fully properly. Then once you have that you can telnet into that port and run commands and inspect the cluster withCLUSTER NODES
to see what the internal state of redis-cluster says