1
votes

I've a VM which contains Docker and Elasticsearch (OS: Centos7). I would like to create a Kibana docker and connect with my ES.

The ES contains indices, if I type curl -s http://localhost:9200/_cat/indices I got the list of indices.

I used Dockerfile to create my Kibana image:

docker build -t="kibana_test" .

docker run --name kibana -e ELASTICSEARCH_URL=http://@IP:9200 -e XPACK_SECURITY_ENABLED=false -p 5600:5601 -d kibana_test

Well, if I put the address IP of my machine, I got this :

plugin:[email protected] Request Timeout after 3000ms

enter image description here

And in my Docker logs I got thi message:

License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster

How can I resolve this problem ?

Thanks for advance!

1
I see http://@IP:9200 which IP ?Thanh Nguyen Van
Sorry! @IP=10.10.10.99 IP address of my VM.S.Akrem
can you curl -s http://10.10.10.99:9200/_cat/indicesThanh Nguyen Van
Nothing to display! I think curl -s 10.10.10.99:9200/_cat/indices don't work.S.Akrem

1 Answers

0
votes

So, configure in elasticsearch.yml file.

network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300

Then restart elasticsearh service first,

When build kibana container :

use this:

 -e ELASTICSEARCH_URL=http://172.17.0.1:9200

check again.