validationdocker上的Jupyter笔记本

我正试图在我的Mac笔记本电脑上安装jupyter笔记本泊坞窗容器。 有以下选项

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

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

然而,它带我到一个身份validation屏幕,并要求一个令牌。 如何获取令牌,我应该在泊坞窗容器中查找哪个日志

容器的stdout会给你一个特殊的URL,它有一个令牌供你login。 你可以运行在前台(没有-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