Docker commands for elasticsearch cluster

Docker commands for elasticsearch cluster,are here

————————START MAIN————————–
————————REFERENCE COMMANDS——————
docker run -d –name es0 -p 9200:9200 es
docker run -d –name es1 –link es0 -e UNICAST_HOSTS=es0 es
docker run -d –name es2 –link es0 -e UNICAST_HOSTS=es0 es
————————REFERENCE COMMANDS——————

from:/root/docker/m1/
docker run -d –name es1 -p 9201:9200 -p 9301:9300 -v “$PWD/config”:/usr/share/elasticsearch/config elasticsearch

from:/root/docker/m2/
docker run -d –name es1 –link es0 -e UNICAST_HOSTS=es0 -p 9202:9200 -p 9302:9300 -v “$PWD/config”:/usr/share/elasticsearch/config elasticsearch

from:/root/docker/m3/
docker run -d –name es2 –link es0 -e UNICAST_HOSTS=es0 -p 9203:9200 -p 9303:9300 -v “$PWD/config”:/usr/share/elasticsearch/config elasticsearch

from:/root/docker/m4/
docker run -d –name es3 –link es0 -e UNICAST_HOSTS=es0 -p 9204:9200 -p 9304:9300 -v “$PWD/config”:/usr/share/elasticsearch/config elasticsearch
————————END MAIN————————–

0

Leave a Reply

Your email address will not be published. Required fields are marked *

*