V7.6.0 kibana port 5601 connection refused

Hello,I install elasticsearch,kibana with docker by using official documentation.
My OS is centos 7.7 and elastisearch and kibana is v7.6.0.
The docker-compose.yml configuration is shown below:

version: '2.2'
services:
es76:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0
container_name: es76
environment:
- node.name=es76
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es76
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./data76:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.6.0
volumes:
- ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- "5601:5601"
networks:
- elastic
# cerebro:
# image: lmenezes/cerebro:0.8.3
# container_name: cerebro
# ports:
# - "9000:9000"
# command:
# - -Dhosts.0.host=http://es76:9200
volumes:
data76:
driver: local
networks:
elastic:
driver: bridge

kibana.yml:

server.name: kibana
server.host: "0.0.0.0"
elasticsearch.hosts: [ "http://es76:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: true

when I use the docker-compose up -d,elasticsearch and kibana is running。
but when I access kibana with Google Chrome, the url is "http://localhost:5601".Then I find that the connection is refused。

netstat -natp | grep 5601
tcp6 0 0 :::5601 :::* LISTEN 10872/docker-proxy-
netstat -natp | grep 9200
tcp6 0 0 :::9200 :::* LISTEN 10857/docker-proxy-

what should I do?
please help me
thank you

Hello Aaron,

This looks likely to be a docker-specific network setup issue. It might be worth reviewing this docker compose for reference. If this doesn't help, there may be an issue specific to running Docker on your OS that requires specific network settings.

Regards,
Aaron

1 Like

I have set up the network again and it is working normally, thank you very much.

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