I mount my folder /workspace/ap_news/esdata
to elastic_search container, however, I cound't see any created index/ files on the host(mac os) folder.
The created indexes by elastic search only saved in the container.
It couldn't be accessed on my host os(Mac OS)
compose.yml
elasticsearch:
image: elasticsearch:1.7.1
hostname: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
volumes:
- /workspace/ap_news/esdata:/usr/share/elasticsearch/data
update
I've already mount the host folder to virtualbox