elastic search using docker code example
Example 1: run elasticsearch docker
docker run --rm -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name elasticsearch docker.elastic.co/elasticsearch/elasticsearch:7.11.1
Example 2: elastic search host using docker
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.12.0
Example 3: elastic search docker file
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.12.0