Sign inSign up

clakech/elasticsearch

By clakech

Updated almost 11 years ago

based on https://hub.docker.com/_/elasticsearch/ with openjdk8 and ES 1.7.2

Image
0

365

clakech/elasticsearch repository overview

Elasticsearch Dockerfile

This repository contains Dockerfile of Elasticsearch for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image
Installation
  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull dockerfile/elasticsearch

    (alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/elasticsearch" github.com/dockerfile/elasticsearch)

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

  2. Create Elasticsearch config file at <data-dir>/elasticsearch.yml.

```yml
path:
  logs: /data/log
  data: /data/data
```

3. Start a container by mounting data directory and specifying the custom configuration file:

```sh
docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data dockerfile/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
```

After few seconds, open http://<host>:9200 to see the result.

Tag summary

Content type

Image

Digest

sha256:e7ce22331

Size

325.2 MB

Last updated

almost 11 years ago

docker pull clakech/elasticsearch