sixeyed/elasticsearch

By sixeyed

Updated about 7 years ago

Windows Nano Server image for Elasticsearch.

Image
9

10K+

sixeyed/elasticsearch repository overview

Elasticsearch

Windows Nano Server image for Elasticsearch. (Dockerfile)

Usage

Run in the background to start a containerized Elasticsearch node:

docker run -d -p 9200:9200 -p 9300:9300 --name elasticsearch sixeyed/elasticsearch:nanoserver

Other containers in the Docker network can work with the server using hostname elasticsearch and port 9200.

You can query the Elasticsearch API from the container host using its IP address:

$ip = docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' elasticsearch
iwr "http://$($ip):9200"

JVM Memory Allocation

Running a container may fail on Windows 10 hosts if they don't have enough RAM. The Hyper-V container doesn't allocate enough memory for the JVM and you'll see an error in the container logs:

Error occurred during initialization of VM
Could not reserve enough space for object heap

You can force the memory allocation using the --memory option, on my 8GB Surface I find 3GB is enough to get Elasticsearch running:

docker run -d -p 9200:9200 -p 9300:9300 -m 3GB --name elasticsearch sixeyed/elasticsearch:nanoserver

Windows Server 2016 is fine.

Tag summary

Content type

Image

Digest

Size

2.3 GB

Last updated

about 7 years ago

docker pull sixeyed/elasticsearch:5.6.11-windowsservercore-ltsc2019