如何在使用容器运行 jupyter 并挂载本地的目录

详细的链接见 https://jupyter-docker-stacks.readthedocs.io/en/latest/using/running.html

运行的命令行见 

$ docker run -p 8888:8888 -v /path/to/local_host:/home/jovyan jupyter/scipy-notebook:2c80cf3537ca
Executing the command: jupyter notebook
[I 14:35:14.589 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret
[W 14:35:14.946 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 14:35:14.975 NotebookApp] JupyterLab alpha preview extension loaded from /opt/conda/lib/python3.6/site-packages/jupyterlab
[I 14:35:14.975 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 14:35:14.982 NotebookApp] Serving notebooks from local directory: /home/jovyan
[I 14:35:14.982 NotebookApp] 0 active kernels
[I 14:35:14.982 NotebookApp] The Jupyter Notebook is running at:
[I 14:35:14.982 NotebookApp] http://[all ip addresses on your system]:8888/?token=decd5ab319d384cf13ea9931fe73bc86288db2f00682961e
[I 14:35:14.982 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:35:14.988 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=decd5ab319d384cf13ea9931fe73bc86288db2f00682961e

该情况下运行产生的文件便可以在本地虚机的 /path/to/local_host 路径下查看到

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值