Python 如何使用docker连接jupyter笔记本电脑

Python 如何使用docker连接jupyter笔记本电脑,python,docker,jupyter-notebook,Python,Docker,Jupyter Notebook,我尝试从macos终端连接到jupyter笔记本电脑,但当我使用 python run_docker_jupyter.py 它还我 Projects/data_science_course/mlcourse_open:/notebooks -w /notebooks festline/mlcourse_open jupyter Command: jupyter [I 14:12:55.078 NotebookApp] Writing notebook server cookie secret

我尝试从macos终端连接到jupyter笔记本电脑,但当我使用

python run_docker_jupyter.py
它还我

Projects/data_science_course/mlcourse_open:/notebooks -w /notebooks festline/mlcourse_open jupyter
Command: jupyter
[I 14:12:55.078 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[W 14:12:55.101 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[W 14:12:55.101 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.
[I 14:12:55.113 NotebookApp] Serving notebooks from local directory: /notebooks
[I 14:12:55.114 NotebookApp] 0 active kernels 
[I 14:12:55.114 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:4545/
[I 14:12:55.114 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
我需要连接本地主机,但在执行某个命令后,它什么也不返回。或者,如果我使用
docker ps
或另一个docker命令,它只会在终端中打印这个命令,在命令前面加上符号
[
,然后转到下一个字符串。仅此而已


这是我第一次使用docker,因此我将非常感谢您的帮助。

首先尝试使用测试python,e.t.尝试运行以下简单的操作:

python -c "print('test')"
您应该将“test”字符串作为输出

然后尝试检查您的docker: 问题:

如果一切顺利,你就可以跑步了

$docker ls

首先尝试使用测试python,例如,尝试运行以下简单的操作:

python -c "print('test')"
您应该将“test”字符串作为输出

然后尝试检查您的docker: 问题:

如果一切顺利,你就可以跑步了

$docker ls

有一个已知的内核崩溃问题可以通过使用Tini修复,我已经附加了几个GIST的链接,这些GIST工作得非常好


还有一个已知的内核崩溃问题,可以通过使用Tini来解决,我已经附加了几个GIST的链接,这些GIST工作得很好