# Docker elastic 6.3 with java 8

**URL:** <https://discuss.elastic.co/t/docker-elastic-6-3-with-java-8/136028>\
**Category:** Elasticsearch\
**Created:** [June 15, 2018, 4:14am UTC](https://discuss.elastic.co/t/docker-elastic-6-3-with-java-8/136028 "2018-06-15T04:14:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijat](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Post date:** [June 15, 2018, 4:14am UTC](https://discuss.elastic.co/t/docker-elastic-6-3-with-java-8/136028/1 "2018-06-15T04:14:15Z")

</div>

Docker elastic 6.3 complains about java 9

```auto
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release
Unrecognized VM option 'PrintReferenceGC'

```

When I look at the source code of the [dockerfile on github](https://github.com/elastic/elasticsearch-docker/blob/6.3/templates/Dockerfile.j2), I see references to jdk8 and 10.

1. Do we have a version of ES 6.3 that runs on JDK 1.8?
2. If not then is there a plan to create one?
3. What options do we have if 1.8 is not supported for docker images?

---

<div class="post-metadata">

**Author:** ![abhijat](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Post date:** [June 15, 2018, 7:33am UTC](https://discuss.elastic.co/t/docker-elastic-6-3-with-java-8/136028/2 "2018-06-15T07:33:52Z")

</div>

If java 8 is strongly recommended for elasticsearch 6.3 then why is the docker elasticsearch is shipped with java 10 as the default... shouldnt it be java 8?

Anyways... as a workaround, I have created my own docker image using elasticsearch's image and installed java 8 in it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 13, 2018, 7:33am UTC](https://discuss.elastic.co/t/docker-elastic-6-3-with-java-8/136028/3 "2018-07-13T07:33:56Z")

</div>

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