From 503344149f7963e2a58ec1ec782eb46179ea50a6 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Sat, 15 Sep 2018 21:59:46 -0700 Subject: [PATCH] Run jupyter UI with --ip=0.0.0.0. (#2883) --- python/ray/services.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/ray/services.py b/python/ray/services.py index 30d0d857b..8f2c33e92 100644 --- a/python/ray/services.py +++ b/python/ray/services.py @@ -822,9 +822,11 @@ def start_ui(redis_address, stdout_file=None, stderr_file=None, cleanup=True): # We generate the token used for authentication ourselves to avoid # querying the jupyter server. token = ray.utils.decode(binascii.hexlify(os.urandom(24))) + # The --ip=0.0.0.0 flag is intended to enable connecting to a notebook + # running within a docker container (from the outside). command = [ "jupyter", "notebook", "--no-browser", "--port={}".format(port), - "--NotebookApp.iopub_data_rate_limit=10000000000", + "--ip=0.0.0.0", "--NotebookApp.iopub_data_rate_limit=10000000000", "--NotebookApp.open_browser=False", "--NotebookApp.token={}".format(token) ]