Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Zeppelin official Docker image download and configure for O'Reilly Spark 2.1 course
# Docker mounts the user's home directory.
# We will download the course notebooks and data into a folder in the home directory and mount it with out Docker image.
mkdir ~/zepp; cd ~/zepp
mkdir -p notebooks logs data
wget -c -O
mv spark-zeppelin-17-1-master/data/* data/
mv spark-zeppelin-17-1-master/notebooks/* notebooks/
rm -rf spark-zeppelin-17-1-master
## Official Docker Image from:
docker run -p 8080:8080 -v $PWD/logs:/logs -v $PWD/data:/data -v $PWD/notebooks:/notebooks \
-e ZEPPELIN_LOG_DIR='/logs' -e ZEPPELIN_DATA_DIR='/data' -e ZEPPELIN_NOTEBOOK_DIR='/notebooks' \
--name zeppelin apache/zeppelin:0.7.2
# docker exec -it zeppelin /bin/bash
## Delete all the Docker images and containers of the host.
docker images | awk '{print $3}' | xargs docker rmi -f
docker ps -a | awk '{print $1}' | xargs docker rm -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.