How to Use run some commands: Make sure you have Docker installed Just change app.py to what ever spark code you want to run. docker build . -f Dockerfile -t spark_image docker run spark_image