Hi,
When I run kibana docker image, the container cannot recognize the elastic search running in a separate container. Here are the steps I followed.
- pulled the docker images for both elasticsearch and kibana though:
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.3.1
docker pull docker.elastic.co/kibana/kibana:6.3.1
- start elasticsearch container:
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.3.1
I can do: curl -XGET 10.23.138.26:9200 and result looks fine.
- start kibana:
docker container run -p 5601:5601 -e SERVER_NAME=test -e ELASTICSEARCH_URL=http://10.23.138.26:9200 docker.elastic.co/kibana/kibana:6.3.1
Then I got the following error messages:
"Unable to connect to Elasticsearch at http://10.23.138.26:9200.
It seems kibana cannot connect to elasticsearch. Is there anything I can do to fix this? Thanks!