Kibana docker image does not start correctly

(Bo Qiang) #1


When I run kibana docker image, the container cannot recognize the elastic search running in a separate container. Here are the steps I followed.

  1. pulled the docker images for both elasticsearch and kibana though:

docker pull
docker pull

  1. start elasticsearch container:

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node"

I can do: curl -XGET and result looks fine.

  1. start kibana:

docker container run -p 5601:5601 -e SERVER_NAME=test -e ELASTICSEARCH_URL=

Then I got the following error messages:

"Unable to connect to Elasticsearch at

It seems kibana cannot connect to elasticsearch. Is there anything I can do to fix this? Thanks!

(Gil Raphaelli) #2

You'll need to link your containers together directly to get this working. For example, adjust your elasticsearch startup to include a name:

docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node"

and then direct kibana to use that name to find the elasticsearch instance:

docker run -p 5601:5601 -e SERVER_NAME=test -e ELASTICSEARCH_URL=http://elasticsearch:9200

(system) #3

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.