# Best practice for large indexes on docker

**URL:** <https://discuss.elastic.co/t/best-practice-for-large-indexes-on-docker/317235>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [October 21, 2022, 8:30pm UTC](https://discuss.elastic.co/t/best-practice-for-large-indexes-on-docker/317235 "2022-10-21T20:30:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ostr1969](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ostr1969/32/70103_2.png) [@Ostr1969](https://discuss.elastic.co/u/Ostr1969)\
**Post date:** [October 21, 2022, 8:30pm UTC](https://discuss.elastic.co/t/best-practice-for-large-indexes-on-docker/317235/1 "2022-10-21T20:30:18Z")

</div>

how can I specify the storage location for an index?. The docker is saves all the container at the /var/lib/docker, but I don't have enough space there.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 21, 2022, 8:40pm UTC](https://discuss.elastic.co/t/best-practice-for-large-indexes-on-docker/317235/2 "2022-10-21T20:40:00Z")

</div>

Hi @Ostr1969

Here are recommendations for running docker in production including how to bind external data volumes for the data paths.

> **[Install Elasticsearch with Docker | Elasticsearch Guide \[8.4\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-prerequisites)**

> **[Install Elasticsearch with Docker | Elasticsearch Guide \[8.4\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_always_bind_data_volumes)**

---

<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 18, 2022, 8:40pm UTC](https://discuss.elastic.co/t/best-practice-for-large-indexes-on-docker/317235/3 "2022-11-18T20:40:12Z")

</div>

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