Commit d4dc5337 authored by Martin Perdacher's avatar Martin Perdacher

Update README.md

parent f7cb4086
...@@ -19,9 +19,21 @@ git clone https://gitlab.cs.univie.ac.at/martinp16cs/docker-spark ...@@ -19,9 +19,21 @@ git clone https://gitlab.cs.univie.ac.at/martinp16cs/docker-spark
cd docker-spark cd docker-spark
docker build -t docker-spark:1.0 . # build an image from your Dockerfile docker build -t docker-spark:1.0 . # build an image from your Dockerfile
docker images # list your images docker images # list your images
```
#### Run docker image interactively:
```{bash}
docker run -t -i docker-spark:1.0 # run the image and redirect i/o to your shell docker run -t -i docker-spark:1.0 # run the image and redirect i/o to your shell
``` ```
#### Run docker image with jupyter notebooks
```{bash}
docker run -p 8888:8888 -t -i docker-spark:1.0 # redirect jupyter port to your host
```
### Docker best practices: ### Docker best practices:
- mount [volume](https://docs.docker.com/storage/) using `docker create volumne` - mount [volume](https://docs.docker.com/storage/) using `docker create volumne`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment