A data volume container for dockerfile/elasticsearch.
352
A super-tiny volume container (168 bytes) with minimal elasticsearch configuration.
Creates a data volume and contains ES config file to instruct it to store the indexes and logs in this volume.
Create the image to install the volume locally:
docker create --name search-data communitycloud/search-data
Then link elasticsearch to this volume:
docker run --name search --volumes-from search-data -d dockerfile/elasticsearch
Elasticsearch is now storing data into this volume. Verify by running a quick ls:
docker run -it --rm --volumes-from search-data dockerfile/elasticsearch /bin/bash -c 'ls -lAR /data'
The configuration file is minimal as well:
docker run -it --rm --volumes-from search-data dockerfile/elasticsearch /bin/bash -c 'cat /data/elasticsearch.yml'
path:
logs: /data/log
data: /data/data
Content type
Image
Digest
sha256:97cada9c6…
Size
286 Bytes
Last updated
almost 11 years ago
docker pull communitycloud/search-data