How to access Docker (with Spark) file systems -
suppose running centos. installed docker, run image.
suppose use image:
https://github.com/jupyter/docker-stacks/tree/master/pyspark-notebook
then run
docker run -it --rm -p 8888:8888 jupyter/pyspark-notebook
now, can open browser localhost:8088
, can create new jupyter notebook, type code , run, etc.
however, how can access file created and, example, commit github. furthermore, if have code on github, how can pull code , access these code docker?
thank much,
you need mount volume
docker run -it --rm -p 8888:8888 -v /opt/pyspark-notebook:/home/jovyan jupyter/pyspark-notebook
you should have executed !pwd
in new notebook , found folder storing work in. , mounted volume. when run above files available on host in /opt/pyspark-notebook
Comments
Post a Comment