Refer to gitlab: https://gitlab.com/bryanzake/spark_docker
This is a container to run Spark on Docker with a Jupyter Notebook for development.
docker build -t spark_docker .
docker-compose up -d
docker container exec sparkdocker_jupyter_1 jupyter notebook list
If you want to retrieve your notebooks more readily, it might make more sense to use a bind-mount. Oherwise you will have to go into /var/lib/docker/volumes/ to retrieve your notebooks.