Kibana on Docker connection refused

Hi all.
I downloaded Kibana and Elasticsearch for Docker and fire them up. Now I can access Elastic (with http or curl) but not Kibana.
It says Connection Refused but on both host and guest I can see the 5601 port running and in listening mode.
I tried different configurations but still getting the same error.
Here is the docker-compose file


version: '2'

services:
kibana:
image: docker.elastic.co/kibana/kibana:5.2.2
container_name: kibana
hostname: kibana
ports:
- 5601:5601
links:
- elasticsearch
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
container_name: elasticsearch
hostname: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
cap_add:
- IPC_LOCK
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200

networks:

- esnet

volumes:
esdata1:
driver: local

I get
ERR_CONNECTION_REFUSED when I try to connect on http://172.20.0.3:5601/
Any clue?

hi @alfredo.deluca,

where did you download this docker file from?

Does this occur with these images?
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/docker.html
https://www.elastic.co/guide/en/kibana/current/_pulling_the_image.html

thx,

Hi Thomas.
Image is 5.2.2 and I haven't tried 5.3 yet but I will soon.
docker file was from the same link you sent but for 5.2, with some small
changes I guess.

Alfredo

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