# Non writable elasticsearch.keystore path - Elasticsearch 6.8

**URL:** <https://discuss.elastic.co/t/non-writable-elasticsearch-keystore-path-elasticsearch-6-8/251563>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [October 9, 2020, 12:50pm UTC](https://discuss.elastic.co/t/non-writable-elasticsearch-keystore-path-elasticsearch-6-8/251563 "2020-10-09T12:50:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BTh0mas](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@BTh0mas](https://discuss.elastic.co/u/BTh0mas)\
**Post date:** [October 9, 2020, 12:50pm UTC](https://discuss.elastic.co/t/non-writable-elasticsearch-keystore-path-elasticsearch-6-8/251563/1 "2020-10-09T12:50:15Z")

</div>

Hi

I am trying to create a custom docker container and use it in a Kubernetes cluster. I would like my build and deployment scripts to create custom Elasticsearch configuration file and mount them into the docker container. This would be easy enough to do but for the fact that Elasticsearch writes into the folder where its configuration file are stored. In particular it tries to write `elasticsearch.keystore` in the folder with other configuration files (such as `elasticsearch.yml`) are stored. However this mounted volume is read only , which causes the problem.

I specifically need Elasticsearch 6.8.

I am unable to find any configuration option that can change the location of `elasticsearch.keystore` and separate it from the rest of the files under `$ES_PATH_CONF`.

Is there such an option ?

If there is no such option what are my other alternatives ?

Aren't files that are modified at run time supposed to be put in "/var/lib" ? If so why this unusual location for "elasticsearch.keystore" ?

regards

---

<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:** [November 6, 2020, 12:50pm UTC](https://discuss.elastic.co/t/non-writable-elasticsearch-keystore-path-elasticsearch-6-8/251563/2 "2020-11-06T12:50:19Z")

</div>

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