Note: Custom Docker images are not supported by Mesosphere.
You can customize the Docker image in which Spark runs by extending
the standard Spark Docker image. In this way, you can install your own
libraries, such as a custom Python library.
FROM mesosphere/spark:1.0.4-2.0.1 RUN apt-get install -y python-pip RUN pip install requests
$ docker build -t username/image:tag . $ docker push username/image:tag
$ dcos spark run --docker-image=myusername/myimage:v1 --submit-args="http://external.website/mysparkapp.py 30"