[英]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.