2016-12-13 10:34:39 +00:00
---
layout: page
title: "Apache Zeppelin Releases Docker Images"
description: "This document contains instructions about making docker containers for Zeppelin. It mainly provides guidance into how to create, publish and run docker images for zeppelin releases."
2017-06-19 10:13:57 +00:00
group: setup/deployment
2016-12-13 10:34:39 +00:00
---
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
{% include JB/setup %}
2017-05-04 07:29:13 +00:00
# Docker Image for Apache Zeppelin Releases
2016-12-13 10:34:39 +00:00
< div id = "toc" > < / div >
## Overview
This document contains instructions about making docker containers for Zeppelin. It mainly provides guidance into how to create, publish and run docker images for zeppelin releases.
## Quick Start
2017-04-19 15:10:57 +00:00
2016-12-13 10:34:39 +00:00
### Installing Docker
You need to [install docker ](https://docs.docker.com/engine/installation/ ) on your machine.
2017-04-19 15:10:57 +00:00
### Running docker image
2016-12-13 10:34:39 +00:00
```
2017-05-04 07:29:13 +00:00
docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:< release-version >
2016-12-13 10:34:39 +00:00
```
2017-04-19 15:10:57 +00:00
* Zeppelin will run at `http://localhost:8080` .
2016-12-13 10:34:39 +00:00
2017-04-19 15:10:57 +00:00
If you want to specify `logs` and `notebook` dir,
2016-12-13 10:34:39 +00:00
```
2017-05-04 07:29:13 +00:00
docker run -p 8080:8080 --rm \
2017-04-19 15:10:57 +00:00
-v $PWD/logs:/logs \
-v $PWD/notebook:/notebook \
2016-12-13 10:34:39 +00:00
-e ZEPPELIN_LOG_DIR='/logs' \
2017-04-19 15:10:57 +00:00
-e ZEPPELIN_NOTEBOOK_DIR='/notebook' \
2017-05-04 07:29:13 +00:00
--name zeppelin apache/zeppelin:< release-version > # e.g '0.7.1'
2016-12-13 10:34:39 +00:00
```
2017-04-19 15:10:57 +00:00
### Building dockerfile locally
2016-12-13 10:34:39 +00:00
2017-04-19 15:10:57 +00:00
```
cd $ZEPPELIN_HOME
2017-05-04 07:29:13 +00:00
cd scripts/docker/zeppelin/bin
2017-04-19 15:10:57 +00:00
2017-05-04 07:29:13 +00:00
docker build -t my-zeppelin:my-tag ./
2017-04-19 15:10:57 +00:00
```
2016-12-13 10:34:39 +00:00