在码头工具上验证Jupyter笔记本

前端之家收集整理的这篇文章主要介绍了在码头工具上验证Jupyter笔记本前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我正在尝试在我的Mac笔记本电脑上安装jupyter笔记本电脑.有以下选项

docker run -dit --rm -p 8888:8888 gcr.io/tensorflow/tensorflow

容器启动,我可以按照预期在http://[cointainer-IP]:8888进行评估.

然而,它需要我进入身份验证屏幕并要求提供令牌.如何获取令牌,我应该在docker容器中查找哪个日志

最佳答案
容器的标准输出将为您提供一个特殊的URL,其中包含一个可供您登录的令牌.您可以在前台运行(不使用-d),也可以只使用docker logs< container_id>检查当前容器日志.在那里,你应该看到如下输出

[I 16:57:05.859 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[W 16:57:05.871 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 16:57:05.877 NotebookApp] Serving notebooks from local directory: /notebooks
[I 16:57:05.877 NotebookApp] 0 active kernels 
[I 16:57:05.877 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/?token=42685cc246e6571c0f16417327fbf4c398061125c00edea5
[I 16:57:05.877 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:57:05.878 NotebookApp] 

    Copy/paste this URL into your browser when you connect for the first time,to login with a token:
        http://localhost:8888/?token=42685cc246e6571c0f16417327fbf4c398061125c00edea5
原文链接:/docker/435777.html

猜你在找的Docker相关文章