Public | Automated Build

Last pushed: 6 months ago
Short Description
docker-elasticsearch-without-mlockall
Full Description

docker-elasticsearch

Lean (127MB) and highly configurable Elasticsearch Docker image.

Current software

  • OpenJDK JRE 8u131
  • Elasticsearch 5.4.0

Run

Attention

Ready to use node for cluster elasticsearch-default:

docker run --name elasticsearch \
    --detach \
    --privileged \
    --volume /path/to/data_folder:/data \
        quay.io/pires/docker-elasticsearch:5.4.0

Ready to use node for cluster myclustername:

docker run --name elasticsearch \
    --detach \
    --privileged \
    --volume /path/to/data_folder:/data \
    -e CLUSTER_NAME=myclustername \
        quay.io/pires/docker-elasticsearch:5.4.0

Ready to use node for cluster elasticsearch-default, with 8GB heap allocated to Elasticsearch:

docker run --name elasticsearch \
    --detach \
    --privileged \
    --volume /path/to/data_folder:/data \
    -e ES_JAVA_OPTS="-Xms8g -Xmx8g" \
        quay.io/pires/docker-elasticsearch:5.4.0

Ready to use node with plugins (x-pack and repository-gcs) pre installed. Already installed plugins are ignored:

docker run --name elasticsearch \
    --detach \
    --privileged \
    --volume /path/to/data_folder:/data \
    -e ES_JAVA_OPTS="-Xms8g -Xmx8g" \
    -e ES_PLUGINS_INSTALL="repository-gcs,x-pack" \
        quay.io/pires/docker-elasticsearch:5.4.0

Master-only node for cluster elasticsearch-default:

docker run --name elasticsearch \
    --detach \
    --privileged \
    --volume /path/to/data_folder:/data \
    -e NODE_DATA=false \
    -e HTTP_ENABLE=false \
        quay.io/pires/docker-elasticsearch:5.4.0

Data-only node for cluster elasticsearch-default:

docker run --name elasticsearch \
    --detach --volume /path/to/data_folder:/data \
    --privileged \
    -e NODE_MASTER=false \
    -e HTTP_ENABLE=false \
        quay.io/pires/docker-elasticsearch:5.4.0

Data-only node for cluster elasticsearch-default with shard allocation awareness:

docker run --name elasticsearch \
    --detach --volume /path/to/data_folder:/data \
        --volume /etc/hostname:/dockerhost \
    --privileged \
    -e NODE_MASTER=false \
    -e HTTP_ENABLE=false \
    -e SHARD_ALLOCATION_AWARENESS=dockerhostname \
    -e SHARD_ALLOCATION_AWARENESS_ATTR="/dockerhost" \
        quay.io/pires/docker-elasticsearch:5.4.0

Client-only node for cluster elasticsearch-default:

docker run --name elasticsearch \
    --detach \
    --privileged \
    --volume /path/to/data_folder:/data \
    -e NODE_MASTER=false \
    -e NODE_DATA=false \
        quay.io/pires/docker-elasticsearch:5.4.0

I also make available special images and instructions for AWS EC2 and Kubernetes.

Environment variables

This image can be configured by means of environment variables, that one can set on a Deployment.

Docker Pull Command
Owner
benjaminbarbe