Using the following command one can install docker. I have done the same using Ubuntu-14-04 instance. For richer options refer the docker official site
Now run the following command from any machine on which docker is installed.
After successfully running the pyspark-notebook docker container, access pyspark ipython notebook by directing the web browser to http://127.0.0.1:8888 or http://localhost:8888. Enjoy the Spark with ipython notebook.
For docker image details refer dockerhub repository
Find the source code in github repository