A Docker Image for Elasticsearch
100K+
A Dockerfile that produces a Docker Image for Elasticsearch.
The master branch currently hosts Elasticsearch 1.3.
Different versions of Elasticsearch are located at the github repo branches.
To create the image frodenas/elasticsearch, execute the following command on the docker-elasticsearch folder:
$ docker build -t frodenas/elasticsearch .
To run the image and bind to host ports 9200 and 9300:
$ docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 frodenas/elasticsearch
The Elasticsearch server is configured to store data in the /data directory inside the container. You can map the
container's /data volume to a volume on the host so the data becomes independent of the running container:
$ mkdir -p /tmp/elasticsearch
$ docker run -d \
--name elasticsearch \
-p 9200:9200 -p 9300:9300 \
-v /tmp/elasticsearch:/data \
frodenas/elasticsearch
There are also additional volumes at:
/logs which exposes Elasticsearch's logsCopyright (c) 2014 Ferran Rodenas. See LICENSE for details.
Content type
Image
Digest
sha256:5f0ecb234…
Size
241.3 MB
Last updated
over 9 years ago
docker pull frodenas/elasticsearch