I don't explicitly set anything. However under nodes, there are multiple directories with id 0,1,2,3,..,12. Each containing a subdirectory called index with a particular index.
Now, when I start an instance of the container, I think it loads only one of these directories under nodes. I want each instance to have access to all the indices.
Your instances need to form a cluster — you can check that with curl <ip>:<port>/_cat/nodes and the IP and port of an Elasticsearch instance. You will need to configure discovery.zen.ping.unicast as described in the relevant docs.
PS: We don't support Elasticsearch 2.4 any more, so you should definitely upgrade. Also the Docker image you are using is not from us, but from Docker. You can get our images from https://www.docker.elastic.co.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.