# Can't volume mount /usr/share/elasticsearch/config on docker

**URL:** <https://discuss.elastic.co/t/cant-volume-mount-usr-share-elasticsearch-config-on-docker/184092>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 4, 2019, 5:43am UTC](https://discuss.elastic.co/t/cant-volume-mount-usr-share-elasticsearch-config-on-docker/184092 "2019-06-04T05:43:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchigood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchigood/32/34323_2.png) [@kimchigood](https://discuss.elastic.co/u/kimchigood)\
**Post date:** [June 4, 2019, 5:43am UTC](https://discuss.elastic.co/t/cant-volume-mount-usr-share-elasticsearch-config-on-docker/184092/1 "2019-06-04T05:43:13Z")

</div>

I tried to set up elasticsearch on docker.  
but i can't volume mount on /usr/share/elasticsearch/config.

`/usr/share/elasticsearch/data, /usr/share/elasticsearch/plugins` is okay. but only i can't volume mount path is `/usr/share/elasticsearch/config`

this is my error logs  
`Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config/jvm.options`

is this permission issue?

---

<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 2, 2019, 5:43am UTC](https://discuss.elastic.co/t/cant-volume-mount-usr-share-elasticsearch-config-on-docker/184092/2 "2019-07-02T05:43:17Z")

</div>

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