Closed BruceChen2017 closed 2 years ago
@BruceChen2017 Hey, so how did you do this?
@Kindrat I was looking for this feature too. It seems that is not supported https://github.com/Grokzen/docker-redis-cluster/issues/81#issuecomment-533887893
@Kindrat @ccatterina You can achieve this by creating network.
sudo docker network create --subnet REMOTE_IP_SUBNET --ip-range REMOTE_IP_RANGE redis-cluster-network
sudo docker run -dit --network=redis-cluster-network --ip=REMOTE_IP --name redis-cluster -p 70 00-7005:7000-7005 grokzen/redis-cluster
When starting redis cluster container in remote server, then I try to connect from local machine. When redirecting, it always try to connect
172.17.0.2:xxxx
, then it cannot be connected. How to resolve this issue?