加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-16 03:49:13 所属栏目:安全 来源:网络整理
导读:我正在尝试在我的Mac笔记本电脑上安装jupyter笔记本电脑.有以下选项 docker run -dit --rm -p 8888:8888 gcr.io/tensorflow/tensorflow 容器启动,我可以按照预期在http://[cointainer-IP]:8888进行评估. 然而,它需要我进入身份验证屏幕并要求提供令牌.如何获

我正在尝试在我的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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读