Build the docker image with the following command
docker built -t spark .
Run the docker image with the following command
docker run -it --rm -p 8888:8888 spark
Trying with docker-compose
docker pull bitnami/spark:latest
docker built -t spark .
docker run -it --rm -p 8888:8888 spark
docker pull bitnami/spark:latest