Elasticsearch with Docker Container
Hey Folks, here we are going to run elastic search in a docker container on port 9200.
If haven’t installed Docker in your machine ,please install it https://docs.docker.com/engine/install/
Get Sachinwuds’s stories in your inbox
Join Medium for free to get updates from this writer.
after installation run the followng commant to run Elasticsearch in a container
docker run -d \
--name elasticsearch \
-e "discovery.type=single-node" \
-e "xpack.security.enabled=false" \
-p 9200:9200 \
-p 9300:9300 \
docker.elastic.co/elasticsearch/elasticsearch:8.10.1 To check every this is fine ,open browser and go to
http://127.0.0.1:9200/And the how you can run elasticsearch.
Thanks for reading.






