# Docker: where to find dockerfile or how to deal with java updates?

**URL:** <https://discuss.elastic.co/t/docker-where-to-find-dockerfile-or-how-to-deal-with-java-updates/124930>\
**Category:** Logstash\
**Created:** [March 21, 2018, 8:24am UTC](https://discuss.elastic.co/t/docker-where-to-find-dockerfile-or-how-to-deal-with-java-updates/124930 "2018-03-21T08:24:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [March 21, 2018, 8:24am UTC](https://discuss.elastic.co/t/docker-where-to-find-dockerfile-or-how-to-deal-with-java-updates/124930/1 "2018-03-21T08:24:49Z")

</div>

Hi,

I am thinking about deploying logstash as docker container in future in production.

In the past we did not update elastic stack often. In general we hop from major to major version but miss the minor updates. Currently we have classic deployment as systemd service and java is available system wide.

In concern of security we need to update java more often as we update elastic stack.  
Whats the best way to keep java for old versions of logstash up to date in docker?

Where can I find the docker file you are using? Then I could just change the java version to fetch build a new image.

Or is there a better / more recommended process? (I am new to docker)

Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 21, 2018, 8:55pm UTC](https://discuss.elastic.co/t/docker-where-to-find-dockerfile-or-how-to-deal-with-java-updates/124930/2 "2018-03-21T20:55:35Z")

</div>

Elastic's Docker images for Logstash are built from [https://github.com/elastic/logstash-docker](https://github.com/elastic/logstash-docker).

---

<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:** [April 18, 2018, 8:56pm UTC](https://discuss.elastic.co/t/docker-where-to-find-dockerfile-or-how-to-deal-with-java-updates/124930/3 "2018-04-18T20:56:19Z")

</div>

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