I'm making some docker-compose yml file with this link. In this config, what does driver: local in top-level volumes mean?
volumes: esdata1: driver: local esdata2: driver: local I'm making some docker-compose yml file with this link. In this config, what does driver: local in top-level volumes mean?
volumes: esdata1: driver: local esdata2: driver: local It's volume driver, equivalent to
docker volume create --driver local --name esdata1 docker volume create --driver local --name esdata2 local means the volumes esdata1 and esdata2 are created on the same Docker host where you run your container. By using other Volume plugins, e.g.,
--driver=flocker you are able to create a volume on a external host and mount it to the local host, say, /data-path. So, when your container writes to /data-path, it actually writes to a external disk via network.
Refer here for some sort of Volume plugins available
local refer to the directory where the docker-compose.yml file defining the volume lies, or some other default local directory? When I run docker-compose up, I don't see any local volumes or anything named esdata1 or esdata2. What am I missing here?docker volume ls and docker volume inspect