You can use ElasticSearch image that is available in the docker hub registry. You just need to pull the image from the docker hub and launch one container. Use the below-given command, it may help you.
$ docker pull elasticsearch:7.7.1
$ docker run -itd --name elasticsearch -p 9200:9200 -e "destroy.type=single-node" elasticsearch:7.7.1