简体   繁体   English

如何在 docker 的特定文件夹中运行 jupyter notebook

[英]How to run a jupyter notebook at a particular folder in docker

I have set up jupyter notebook in the correct port in docker, everytime I need to upload data into the notebook and do analysis, is there anyway I can get up my jupyter file location to a particular file,keeping in mind I'm using docker.我已经在 docker 的正确端口中设置了 jupyter 笔记本,每次我需要将数据上传到笔记本并进行分析时,无论如何我可以将我的 jupyter 文件位置设置到特定文件,请记住我使用的是 docker .

You need to volume your folder to the Docker container.您需要将文件夹卷到 Docker 容器中。 An example that you use jupyter/all-spark-notebook image, so you can run:使用jupyter/all-spark-notebook映像的示例,因此您可以运行:

docker run -it --rm -p 8888:8888  -p 4040:4040 -v your-path:/home/jovyan/workspace jupyter/all-spark-notebook

Update your-path to the path contains your notebooks your-path更新为包含您的笔记本的路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 docker 和 ubuntu 运行 jupyter notebook? - How to run jupyter notebook using docker with ubuntu? 在Docker的背景中运行Jupyter笔记本 - Run Jupyter Notebook in the Background on Docker 如何使用 docker 镜像为 Jupyter 笔记本挂载本地文件夹? - How to mount a local folder using docker image for Jupyter notebook? 如何在不通过 jupyter notebook 运行的 docker 镜像中定义设置 - How to define the setting in the docker image not run through jupyter notebook VSCode:如何通过远程服务器在 docker 容器中运行 Jupyter notebook? - VSCode: How to run a Jupyter notebook in a docker container, over a remote server? "当 Jupyter Notebook 已经与 docker compose 一起使用时,如何让它与 docker run 一起运行?" - How to get a Jupyter Notebook to run with docker run when it already works with docker compose? 如何在Docker中运行不属于预先构建的Docker映像的新Jupyter Notebook文件? - How to run a new Jupyter Notebook file that's not part of a pre-built docker image in docker? 如何从服务器上的Docker访问Jupyter Notebook? - How to access jupyter notebook from docker on server? Docker上的Tensorflow:如何在Jupyter笔记本上保存工作? - Tensorflow on Docker: How to save the work on Jupyter notebook? Docker - 连接到 Jupyter 笔记本 - Docker - Connecting to Jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM