# \[Feature Request\] Support \_FILE suffix in docker images

**URL:** <https://discuss.elastic.co/t/feature-request-support-file-suffix-in-docker-images/140107>\
**Category:** Elasticsearch\
**Created:** [July 16, 2018, 8:44am UTC](https://discuss.elastic.co/t/feature-request-support-file-suffix-in-docker-images/140107 "2018-07-16T08:44:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikeee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikeee/32/77500_2.png) [@nikeee](https://discuss.elastic.co/u/nikeee)\
**Post date:** [July 16, 2018, 8:44am UTC](https://discuss.elastic.co/t/feature-request-support-file-suffix-in-docker-images/140107/1 "2018-07-16T08:44:09Z")

</div>

There is a convention on official docker images that environment variables that end in `_FILE` are read as a file and then assigned to a variable without the `_FILE` suffix. For example, setting the environment variable `ELASTIC_PASSWORD_FILE` to `/run/secrets/secret-password` will read the file `/run/secrets/secret-password` and assign its contents to the environment variable `ELASTIC_PASSWORD`. This is especially handy when using Docker secrets.

Related issue on grafana: [https://github.com/grafana/grafana-docker/pull/166](https://github.com/grafana/grafana-docker/pull/166)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 16, 2018, 9:03am UTC](https://discuss.elastic.co/t/feature-request-support-file-suffix-in-docker-images/140107/2 "2018-07-16T09:03:43Z")

</div>

Thanks for the idea, do you mind putting it into [https://github.com/elastic/elasticsearch-docker/issues](https://github.com/elastic/elasticsearch-docker/issues)?

---

<div class="post-metadata">

**Author:** ![nikeee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikeee/32/77500_2.png) [@nikeee](https://discuss.elastic.co/u/nikeee)\
**Post date:** [July 16, 2018, 9:09am UTC](https://discuss.elastic.co/t/feature-request-support-file-suffix-in-docker-images/140107/3 "2018-07-16T09:09:58Z")

</div>

Done. Issue is at: [https://github.com/elastic/elasticsearch-docker/issues/183](https://github.com/elastic/elasticsearch-docker/issues/183)

---

<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:** [August 13, 2018, 9:10am UTC](https://discuss.elastic.co/t/feature-request-support-file-suffix-in-docker-images/140107/4 "2018-08-13T09:10:05Z")

</div>

Closed on August 13, 2018, 9:10am UTC

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