Docker Volume driver choice

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)
   volumes:
      - /opt/ssd/ds1/hot_data/:/usr/share/elasticsearch/data
      - snapshots:/usr/share/elasticsearch/snapshots
    networks:
      - elastic

and after

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

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