Elasticsearch Docker 5.4.0 Image using the wrong JAVA_ENV variable

Hi it seems the JAVA_ENV variable is set:
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk

but when I run docker run --rm docker.elastic.co/elasticsearch/elasticsearch:5.4.0 ls /usr/lib/jvm

It only lists the following:
java-1.8.0-openjdk-1.8.0.131-2.b11.el7_3.x86_64
jre
jre-1.8.0
jre-1.8.0-openjdk
jre-1.8.0-openjdk-1.8.0.131-2.b11.el7_3.x86_64
jre-openjdk

should it actually be jre-1.8.0-openjdk?

1 Like

Thank you for reporting this. It is a bug from the transition from Alpine to CentOS:7.

This has been addressed in https://github.com/elastic/elasticsearch-docker/pull/64#issuecomment-300527492 and acceptance tests have been added to avoid this in the future.

A fresh 5.4.0 image has been pushed including the fix.

Thank you for addressing this. :grinning:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.