Spark On Docker

Installing Docker on Ubuntu

Running Spark 1.2 Docker

Commands:

sudo docker pull sequenceiq/spark:1.2.0
sudo docker run -i -t -h sandbox sequenceiq/spark:1.2.0 /etc/bootstrap.sh -bash

-v Mount host /opt/rpm1 on image /opt/rpm1
-P map image ports to host port (see docker ps -l for mapping)
docker run -v /opt/rpm1:/opt/rpm1 -P -i -t -h sandbox sequenceiq/spark:1.2.0 /etc/bootstrap.sh -bash

Useful Docker Commands

sudo docker ps -l  #Lists ports of running image (-a all images)
sudo docker images #List docker images