无法连接到Jupyter Notebook的Web浏览器

时间:2018-06-21 22:12:11

标签: docker ipython jupyter-notebook

嗨,我一直在关注这个tutorial,并试图在docker上设置jupyter笔记本。我正在使用Windows 10 Home。我设法设置了docker工具箱并从github存储库中克隆了

然后,我使用以下命令将下载的文件复制到虚拟机目录中: docker run -it -p 8888:8888 -p 6006:6006 -v /$(pwd)/CADL:/notebooks --name tf pkmital/cadl

现在,当我尝试jupyter notebook &时会显示

(base) root@eaf652bccc31:/notebooks# [W 22:02:47.479 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[C 22:02:47.486 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.

在本教程中它说它应该显示:

[I 21:15:33.647 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[W 21:15:33.712 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[W 21:15:33.713 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
[I 21:15:33.720 NotebookApp] Serving notebooks from local directory: /root
[I 21:15:33.721 NotebookApp] 0 active kernels
[I 21:15:33.721 NotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8888/
[I 21:15:33.721 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

当我尝试连接到192.168.99.101:8888时,它说连接被拒绝,但我可以成功ping 192.168.99.101-docker ip。 另外,我已经打开了从49152到65535之间的端口,并尝试将其完全关闭,但它似乎仍然无法正常工作。

任何帮助或指针都很棒!

0 个答案:

没有答案