Reputation: 180
I am trying to get Google COLAB to connect to a local docker image running tensorflow/tensorflow:latest-gpu-py3-jupyter.
I can connect directly to the instance as "http://192.168.1.130:8888?token=XXXXX" but when I insert said backend URL into the "local connection settings" dialog the "connect" button remains disabled.
I have tried both Firefox and Chrome.
The javascript console does not show any errors or connection attemps (xhr or ws) to the container's IP address.
The docker image has jupyter_http_over_ws installed and enabled.
The notebook is running with allow_origin='*' right now.
The Dockerfile CMD entry:
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root --NotebookApp.allow_origin='*'"]
Upvotes: 0
Views: 2268
Reputation: 199
No, the ip address is not allowed here and you must use localhost.
I believe this is for security reason from Google.
Upvotes: 0
Reputation: 21
Modifying the IP address to be 'localhost' within the URL appears to aid enabling the Connect button.
e.g.
http://192.168.1.130:8888?token=XXXXX
becomes http://localhost:8888?token=XXXXX
Upvotes: 2