# Docker filebeat installation error

**URL:** https://discuss.elastic.co/t/docker-filebeat-installation-error/320686
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [December 7, 2022, 1:27pm UTC](https://discuss.elastic.co/t/docker-filebeat-installation-error/320686 "2022-12-07T13:27:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AnkurYogi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankuryogi/32/121279_2.png) [@AnkurYogi](https://discuss.elastic.co/u/AnkurYogi)
#### Post date: [December 7, 2022, 1:27pm UTC](https://discuss.elastic.co/t/docker-filebeat-installation-error/320686/1 "2022-12-07T13:27:59Z")

</div>

\<root@ubuntu:/# docker run \

> [docker.elastic.co/beats/filebeat:8.5.2](http://docker.elastic.co/beats/filebeat:8.5.2)   
> setup -E setup.kibana.host=172.18.0.3:5601   
> -E output.elasticsearch.hosts=["172.18.0.2:9200"]  
> Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at [http://172.18.0.2:9200](http://172.18.0.2:9200): Get "[http://172.18.0.2:9200](http://172.18.0.2:9200)": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)]

\<root@ubuntu:/home/test# docker run \

> [docker.elastic.co/beats/filebeat:8.5.2](http://docker.elastic.co/beats/filebeat:8.5.2)   
> setup -E setup.kibana.host=192.168.1.6:5601   
> -E output.elasticsearch.hosts=["192.168.1.6:9200"]  
> Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at [http://192.168.1.6:9200](http://192.168.1.6:9200): Get "[http://192.168.1.6:9200](http://192.168.1.6:9200)": EOF]

---

<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: [January 4, 2023, 3:28pm UTC](https://discuss.elastic.co/t/docker-filebeat-installation-error/320686/2 "2023-01-04T15:28:41Z")

</div>

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