# Kibana on Docker connection refused

**URL:** https://discuss.elastic.co/t/kibana-on-docker-connection-refused/82237
**Category:** Kibana
**Created:** [April 13, 2017, 3:27am UTC](https://discuss.elastic.co/t/kibana-on-docker-connection-refused/82237 "2017-04-13T03:27:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)
#### Post date: [April 13, 2017, 3:27am UTC](https://discuss.elastic.co/t/kibana-on-docker-connection-refused/82237/1 "2017-04-13T03:27:33Z")

</div>

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](http://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](http://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/](http://172.20.0.3:5601/)  
Any clue?

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [April 13, 2017, 2:27pm UTC](https://discuss.elastic.co/t/kibana-on-docker-connection-refused/82237/2 "2017-04-13T14:27:23Z")

</div>

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/elasticsearch/reference/5.3/docker.html)  
[https://www.elastic.co/guide/en/kibana/current/\_pulling\_the\_image.html](https://www.elastic.co/guide/en/kibana/current/_pulling_the_image.html)

thx,

---

<div class="post-metadata">

### Author: ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)
#### Post date: [April 14, 2017, 1:33am UTC](https://discuss.elastic.co/t/kibana-on-docker-connection-refused/82237/3 "2017-04-14T01:33:45Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 12, 2017, 1:34am UTC](https://discuss.elastic.co/t/kibana-on-docker-connection-refused/82237/4 "2017-05-12T01:34:00Z")

</div>

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