Sign inSign up

dockerize/elasticsearch

By dockerize

Updated almost 11 years ago

Image
0

1.9K

dockerize/elasticsearch repository overview

ElasticSearch Dockerfile

ElasticSearch Dockerfile. Also published to public Docker Registry.

Installation
  1. Install Docker

  2. Download image from public Docker Registry:

docker pull dockerize/elasticsearch

or build an image from the Dockerfile:

docker build -t dockerize/elasticsearch github.com/dockerize/elasticsearch
Usage
docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data dockerize/elasticsearch
Attach persistent/shared directories
  1. Create a mountable data directory on the host.

  2. Create ElasticSearch config file at /elasticsearch.yml.

path:
 logs: /data/log
 data: /data/data
  1. Start a container by mounting data directory and specifying the custom configuration file:
docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data dockerize/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml

After few seconds, open [http://localhost:9200] to see the result.

Tag summary

Content type

Image

Digest

sha256:887a4d14f

Size

612.1 MB

Last updated

about 11 years ago

docker pull dockerize/elasticsearch