This image provides Elasticsearch based on Alpine Linux latest stable version. All files are adapted from the official Elasticsearch docker repository.
latest
(Dockerfile)6.2.4
(Dockerfile)6.2.1
(Dockerfile)5.6.14
(Dockerfile)5.6.7
(Dockerfile)2.4.6
(Dockerfile)
For image 5.6.7
or newer, vm.max_map_count
must set to
262144 on the host that run this image.
$ sudo sysctl -w vm.max_map_count=262144
You can run the default elasticsearch command simply:
$ docker run -d bashell/alpine-elasticsearch
You can also pass in additional flags to elasticsearch:
$ docker run -d bashell/alpine-elasticsearch \
elasticsearch -Des.node.name="TestNode"
This image comes with a default set of configuration files for elasticsearch,
but if you want to provide your own set of configuration files, you can do so
via a volume mounted at /opt/elasticsearch/config
:
$ docker run -d \
-v "$PWD/config":/opt/elasticsearch/config \
bashell/alpine-elasticsearch
This image is configured with a volume at /opt/elasticsearch/data
to hold the
persisted index data. Use that path if you would like to keep the data in a
mounted volume:
$ docker run -d \
-v "$PWD/esdata":/opt/elasticsearch/data \
bashell/alpine-elasticsearch
This image includes EXPOSE 9200 9300
(default http port),
so standard container linking will make it automatically available to the
linked containers.
If you have any problems with or questions about this image, please contact us through a Bitbucket issue.