Public Repository

Last pushed: 5 months ago
Short Description
Scalingo Elasticsearch Image
Full Description

Running the image

This image contains elasticsearch. To start the image, you can run the following snippet:

docker run -it -p 8000:8000 \
           -v <DATA_DIRECTORY>:/var/lib/elasticsearch \
           scalingo/elasticsearch /elasticsearch

You database is now up and running on the port 8000 of your host.


  • <DATA_DIRECTORY>: directory used to store database data.


  • DB_USER (Optional, default: elasticsearch): username used for database authentication.
  • DB_PASSWORD (Optional, default: secret): password used for database authentication.

  • ES_HEAP_SIZE (Optional, default: 256m): minimum ram allocated by the JVM (Xms/Xmx flag)

  • ES_MEMORY_LOCK (in developement, set it to false, it is true by default)
  • DB_UID (Optional, default: 1503): user UID that elasticsearch should use to store data and run itself. You can set it to your own UID to have a simpler dev environment. Just add -e DB_UID=`id -u` before the -v flag.

System configuration

According to the distribution you're using or the configuration you're having you might need to set

sysctl -w vm.max_map_count=262144

Write it down in /etc/sysctl.conf to make it persistent across reboots.

Startup logs

Normal startup logs are :

[2017-08-29T09:23:02,131][INFO ][o.e.n.Node ] [] initializing ...
[2017-08-29T09:23:02,210][INFO ][o.e.e.NodeEnvironment ] [] using [1] data paths, mounts [[/var/lib/elasticsearch (tmpfs)]], net usable_space [7.7gb], net total_space [7.7gb], spins? [no], types [tmpfs]
[2017-08-29T09:23:02,211][INFO ][o.e.e.NodeEnvironment ] [] heap size [247.5mb], compressed ordinary object pointers [true]
[2017-08-29T09:23:02,212][INFO ][o.e.n.Node ] [] node name [], node ID [OvcFq0xfQhiIAAQxnxMizg]
[2017-08-29T09:23:02,212][INFO ][o.e.n.Node ] [] version[5.5.2], pid[31], build[b2f0c09/2017-08-14T12:33:14.154Z], OS[Linux/4.11.6-3-ARCH/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-08-29T09:23:02,213][INFO ][o.e.n.Node ] [] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true,, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Xms256m, -Xmx256m, -Des.path.home=/usr/share/elasticsearch]
[2017-08-29T09:23:02,989][INFO ][o.e.p.PluginsService ] [] loaded module [aggs-matrix-stats]
[2017-08-29T09:23:02,989][INFO ][o.e.p.PluginsService ] [] loaded module [ingest-common]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [] loaded module [lang-expression]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [] loaded module [lang-groovy]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [] loaded module [lang-mustache]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [] loaded module [lang-painless]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [] loaded module [parent-join]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [] loaded module [percolator]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [] loaded module [reindex]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [] loaded module [transport-netty3]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [] loaded module [transport-netty4]
[2017-08-29T09:23:02,992][INFO ][o.e.p.PluginsService ] [] no plugins loaded
[2017-08-29T09:23:04,327][INFO ][o.e.d.DiscoveryModule ] [] using discovery type [zen]
[2017-08-29T09:23:04,803][INFO ][o.e.n.Node ] [] initialized
[2017-08-29T09:23:04,803][INFO ][o.e.n.Node ] [] starting ...
[2017-08-29T09:23:04,936][INFO ][o.e.t.TransportService ] [] publish_address {}, bound_addresses {}
[2017-08-29T09:23:04,948][INFO ][o.e.b.BootstrapChecks ] [] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

[2017-08-29T09:23:08,034][INFO ][o.e.c.s.ClusterService ] [] new_master {}{OvcFq0xfQhiIAAQxnxMizg}{J6BEch8XSxuBAhKDHCuSYQ}{}{}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-08-29T09:23:08,059][INFO ][o.e.g.GatewayService ] [] recovered [0] indices into cluster_state
[2017-08-29T09:23:08,072][INFO ][o.e.h.n.Netty4HttpServerTransport] []

Docker Pull Command