-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Failure to connect to Redis when running in a docker container #11943
Comments
Looks like the root cause is in https://github.com/ray-project/ray/blob/master/python/ray/_private/services.py#L187 |
@roireshef Quick question, what networking options are you applying to the Docker container? |
I'm passing to Ray all the port configurations in https://docs.ray.io/en/master/configure.html#ports-configurations manually and making sure to have docker set up with port forwarding for all of those ports, if that's what you are asking. Could you please verify this list is complete? If not, please be more specific on what parameters you want to know about... |
Please be aware that running |
|
cc @ericl Can you provide any context here? |
Hi @ijrsvt, assuming the |
@ericl , @ijrsvt - should we just propagate node-ip-address if it's provided by the user, to avoid issues? I'm not sure how to do that myself, otherwise I would have opened a PR for that... unless I'm missing some conflicting use case. |
encounter the same issue: ray docker containers can not find each other. |
When running in a docker container, the address resolution results with the docker container IP and not the physical machine's IP, which results in the following traceback (*** are hidden fields for security reasons):
Ray version and other system information (Python version, TensorFlow version, OS):
Ray installed via https://docs.ray.io/en/master/development.html#building-ray-python-only
on both latest master and releases/1.0.1
Reproduction (REQUIRED)
Please provide a script that can be run to reproduce the issue. The script should have no external library dependencies (i.e., use fake or mock data / environments):
ray start --block --head --port=*** --redis-password=*** --node-ip-address=*** --gcs-server-port=6005 --dashboard-port=6006 --node-manager-port=6007 --object-manager-port=6008 --redis-shard-ports=6400,6401,6402,6403,6404,6405,6406,6407,6408,6409 --min-worker-port=6100 --max-worker-port=6299 --include-dashboard=false
then in python:
ray.init(address='***:***', _redis_password='***')
The text was updated successfully, but these errors were encountered: