Running a local kibana in a container

I am trying to run use kibana console with my local elasticsearch (container)
In the ElasticSearch documentation I see

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

Which lets me run the community edition in a quick one liner.

Looking at the kibana documentation i see only

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

Replacing pull with run it looks for the x-pack (I think it means not community) and fails to find the ES

Unable to revive connection: http://elasticsearch:9200/

Is there a one liner that could easily set up kibana localy in a container?
All I need is to work with the console (Sense replacement)

Kibana's looking for an elasticsearch cluster with a domain of elasticsearch. These two containers need to be linked together with a network - https://docs.docker.com/network/

If you have docker-compose available it'll do this for you:

version: '2'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.2.2
    environment:
      - discovery.type=single-node
    ports:
      - 127.0.0.1:9200:9200
  kibana:
    image: docker.elastic.co/kibana/kibana:6.2.2
    ports:
      - 127.0.0.1:5601:5601
docker-compose up

Are you using Console to manage a separate cluster? The versions bundled with Kibana only let you connect to the backing elasticsearch cluster.

Thanks. Works wonderfully.

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