# Install elasticsearch with Dockerfile

**URL:** <https://discuss.elastic.co/t/install-elasticsearch-with-dockerfile/181873>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 20, 2019, 4:40pm UTC](https://discuss.elastic.co/t/install-elasticsearch-with-dockerfile/181873 "2019-05-20T16:40:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leobaiano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leobaiano/32/43704_2.png) [@leobaiano](https://discuss.elastic.co/u/leobaiano)\
**Post date:** [May 20, 2019, 4:40pm UTC](https://discuss.elastic.co/t/install-elasticsearch-with-dockerfile/181873/1 "2019-05-20T16:40:31Z")

</div>

I followed the [https://www.elastic.co/en/blog/how-to-make-a-dockerfile-for-elasticsearch](https://www.elastic.co/en/blog/how-to-make-a-dockerfile-for-elasticsearch) tutorial to create a Dockerfile and install elasticsearch on Heroku, but when I deploy I get the message from error:

> Unable to locate package oracle-java8-installer  
> The command '/bin/sh -c apt-get install --no-install-recommends -y oracle-java8-installer' returned a non-zero code: 100

I understand that you are probably having trouble installing java 8, but I have already researched it and have not figured out how to do it in a way that works. Anyone who has ever gone through this and / or know how to solve this problem could give me some help?

---

<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:** [June 17, 2019, 4:40pm UTC](https://discuss.elastic.co/t/install-elasticsearch-with-dockerfile/181873/2 "2019-06-17T16:40:48Z")

</div>

Closed on June 17, 2019, 4:40pm UTC

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