Skip to content

Commit 423a4c9

Browse files
committed
Add --publish 4040:4040 to docker run examples
1 parent 2d9cc21 commit 423a4c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ A `debian:jessie` based [Spark](http://spark.apache.org) container. Use it in a
77

88
To run `SparkPi`, run the image with Docker:
99

10-
docker run --rm -it gettyimages/spark bin/run-example SparkPi 10
10+
docker run --rm -it -p 4040:4040 gettyimages/spark bin/run-example SparkPi 10
1111

1212
To start `spark-shell` with your AWS credentials:
1313

14-
docker run --rm -it -e "AWS_ACCESS_KEY_ID=YOURKEY" -e "AWS_SECRET_ACCESS_KEY=YOURSECRET" gettyimages/spark bin/spark-shell
14+
docker run --rm -it -e "AWS_ACCESS_KEY_ID=YOURKEY" -e "AWS_SECRET_ACCESS_KEY=YOURSECRET" -p 4040:4040 gettyimages/spark bin/spark-shell
1515

1616
To do a thing with Pyspark
1717

1818
echo "import pyspark\nprint(pyspark.SparkContext().parallelize(range(0, 10)).count())" > count.py
19-
docker run --rm -it -v $(pwd)/count.py:/count.py gettyimages/spark bin/pyspark /count.py
19+
docker run --rm -it -p 4040:4040 -v $(pwd)/count.py:/count.py gettyimages/spark bin/pyspark /count.py
2020

2121
## docker-compose example
2222

0 commit comments

Comments
 (0)