# Docker Volume driver choice with docker swarm

**URL:** <https://discuss.elastic.co/t/docker-volume-driver-choice-with-docker-swarm/130817>\
**Category:** Elasticsearch\
**Created:** [May 7, 2018, 11:05am UTC](https://discuss.elastic.co/t/docker-volume-driver-choice-with-docker-swarm/130817 "2018-05-07T11:05:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharongur](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Post date:** [May 7, 2018, 11:05am UTC](https://discuss.elastic.co/t/docker-volume-driver-choice-with-docker-swarm/130817/1 "2018-05-07T11:05:28Z")

</div>

Hello,  
Im trying to use ElasticSearch 6.1.1 with docker swarm.  
I noticed that it is impossible to use local volume on the host ( as the swarm can create many ES containers on the same host and they cant have the same volume)  
I decided then to use the Docker volume API, but i see there are many drivers i can choose from.

In the elastic documentation they choose the "local" driver  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)

I wanted to know why? is this the best practice? what are the recommendations and the parameters to know which driver i should choose for my elastic cluster?

---

<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 4, 2018, 11:05am UTC](https://discuss.elastic.co/t/docker-volume-driver-choice-with-docker-swarm/130817/2 "2018-06-04T11:05:40Z")

</div>

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