We can install Elasticsearch and Kibana using Docker. In this lesson, I will show you how to install Elasticsearch and Kibana using Docker. To install docker at first we have to pull the Elasticsearch docker image from the docker hub.
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.11.1
Here I pulled Elasticsearch version 7.11.1 you can pull which one you want.
docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.11.1
docker pull docker.elastic.co/kibana/kibana:7.11.1
docker run --link YOUR_ELASTICSEARCH_CONTAINER_NAME_OR_ID:elasticsearch -p 5601:5601 {docker-repo}:{version}
docker run -d --link hardcore_cerf:elasticsearch -p 5601:5601 docker.elastic.co/kibana/kibana:7.11.1
Don't forget to replace the Elasticsearch container name. Here hardcore_cerf is the Elasticsearch container name.