Would you like to learn how to install ElasticSearch using Docker on Ubuntu Linux? In this tutorial, we are going to show you all the steps required to perform the ElasticSearch installation using Docker on a computer running Ubuntu Linux in 5 minutes or less.
• Ubuntu 18.04
• Ubuntu 19.10
• Docker 19.03.6
• ElasticSearch 7.6.2
• Kibana 7.6.2
In our example, the ElasticSearch service will listen on the TCP port 9200 and 9300.
In our example, the Kibana service will listen on the TCP port 5601.
ElasticSearch Related Tutorial:
On this page, we offer quick access to a list of tutorials related to ElasticSearch installation.
Tutorial Elasticsearch – Docker Installation on Ubuntu Linux
Install the Docker service.
Download the ElasticSearch docker image from the online repository.
List the Docker images installed on your system.
Here is the command output:
Start a new ElasticSearch container using this Docker image.
Here is the command output:
In our example, the ElasticSearch image was used to start a new container.
The new container is using the local ports 9200 and 9300.
The container ID is 2ff94bbd12109861c6d10afae3191b2efcc4b99f34cb9049d8ef27d6212da5e4.
Use the following comand to test your ElasticSearch installation.
Here is the command output:
Another way to test your Elasticsearch installation is to use your browser.
Open your browser and enter the IP address of your ElasticSearch server plus :9200.
In our example, the following URL was entered in the Browser:
• http://192.168.15.15:9200
The ElasticSearch RESTAPI interface should answer your request:
Congratulations! You have finished the ElasticSearch Docker installation on Ubuntu Linux.
Tutorial Elasticsearch – Docker container management
Verify the status of all Docker conteiners using the following command:
Here is the command output:
Verify the status of the ElasticSearch container using the ID or its name.
Here is the command output:
To stop the ElasticSearch container service, use the following command:
To start the ElasticSearch container service, use the following command:
To restart the ElasticSearch container service, use the following command:
In case of error, use the following command to verify the ElasticSearch container logs.
In our examples, we demonstrate how to manage the Elasticsearch container using its ID or the name previously defined.
Tutorial Kibana – Docker Installation on Ubuntu Linux
Download the Kibana docker image from the online repository.
List the Docker images installed on your system.
Here is the command output:
Before we start, stop and delete any existing Elasticsearch container.
Create a new Docker network named Elastic.
Start a new ElasticSearch container connected to the Docker network previously created.
Start a new Kibana container connected to the Docker network previously created.
The Kibana container will start and automatically connect to the ElasticSearch container.
Keep in mind that both docker images can take a while to initiate.
Congratulations! You have finished the Kibana Docker installation on Ubuntu Linux.
Kibana – Dashboard login
Open your browser and enter the IP address of your server plus :5601.
In our example, the following URL was entered in the Browser:
• http://192.168.15.15:5601
The Kibana web interface should be presented
Congratulations! You have access to the Kibana web interface.