# Docker Volume driver choice

**URL:** <https://discuss.elastic.co/t/docker-volume-driver-choice/298586>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 2, 2022, 7:45am UTC](https://discuss.elastic.co/t/docker-volume-driver-choice/298586 "2022-03-02T07:45:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![INS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ins/32/92827_2.png) [@INS](https://discuss.elastic.co/u/INS)\
**Post date:** [March 2, 2022, 7:45am UTC](https://discuss.elastic.co/t/docker-volume-driver-choice/298586/1 "2022-03-02T07:45:25Z")

</div>

Hi  
Under creating docker compose file I have come across two vaguely described cases:

1. when I need to use an external disk for example [I have a 3 hosts with multiply ssd(/opt/ssd/ds1/hot\_data/) and hdd (/opt/hdd/ds1/warm\_data/)] so through docker swarm nodes will be locked there but how I should defined this point  
I saw that on elastic page it was created as local driver  
([Install Elasticsearch with Docker | Elasticsearch Guide [8.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html))

```auto
   volumes:
      - /opt/ssd/ds1/hot_data/:/usr/share/elasticsearch/data
      - snapshots:/usr/share/elasticsearch/snapshots
    networks:
      - elastic

```

and after

```auto
volumes:
  /opt/ssd/ds1/hot_data/:
    driver: local
  /opt/hdd/ds1/warm_data/:
    driver: local

```

---

<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:** [March 30, 2022, 7:46am UTC](https://discuss.elastic.co/t/docker-volume-driver-choice/298586/2 "2022-03-30T07:46:01Z")

</div>

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