Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot redirect when connecting from remote #136

Closed
BruceChen2017 opened this issue Jan 8, 2022 · 3 comments
Closed

Cannot redirect when connecting from remote #136

BruceChen2017 opened this issue Jan 8, 2022 · 3 comments

Comments

@BruceChen2017
Copy link

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?

@Kindrat
Copy link

Kindrat commented Feb 7, 2022

@BruceChen2017 Hey, so how did you do this?

@ccatterina
Copy link

@Kindrat I was looking for this feature too. It seems that is not supported #81 (comment)

@BruceChen2017
Copy link
Author

@Kindrat @ccatterina
You can achieve this by creating network.

  • create network: sudo docker network create --subnet REMOTE_IP_SUBNET --ip-range REMOTE_IP_RANGE redis-cluster-network
  • connect by remote ip: sudo docker run -dit --network=redis-cluster-network --ip=REMOTE_IP --name redis-cluster -p 70 00-7005:7000-7005 grokzen/redis-cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants