Installing Elasticsearch and Kibana using Docker

Installing Elasticsearch and Kibana using Docker

Instructor-svgAl-Mamun Sarkar
Apr 23 , 2021

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. 

 

Installing Elasticsearch:

Pull Elasticsearch:

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. 

Running Elasticsearch Container:

docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.11.1

 

Installing Kibana:

Pull Kibana:

docker pull docker.elastic.co/kibana/kibana:7.11.1

The syntax for running Kibana:

docker run --link YOUR_ELASTICSEARCH_CONTAINER_NAME_OR_ID:elasticsearch -p 5601:5601 {docker-repo}:{version}

Installing Kibana:

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.

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram