# Running filebeat with the setup command docker

**URL:** <https://discuss.elastic.co/t/running-filebeat-with-the-setup-command-docker/301853>\
**Category:** Beats\
**Tags:** docker, windows, filebeat\
**Created:** [April 7, 2022, 10:08am UTC](https://discuss.elastic.co/t/running-filebeat-with-the-setup-command-docker/301853 "2022-04-07T10:08:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![The-morpho](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@The-morpho](https://discuss.elastic.co/u/The-morpho)\
**Post date:** [April 7, 2022, 10:08am UTC](https://discuss.elastic.co/t/running-filebeat-with-the-setup-command-docker/301853/1 "2022-04-07T10:08:20Z")

</div>

Hi everyone, i'm trying to install elk and filebeat on docker, well i uploaded the image of elk and it worked i can go to the kibana dashboard and view elastic ,...

Now I want to install filebeat image so i followed the documentation bellow , the image is pulled but when I want to run filebeat setup command i got an error.

Documentation: [Run Filebeat on Docker | Filebeat Reference [8.1] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html#running-on-docker)

```auto

docker run docker.elastic.co/beats/filebeat:8.1.2 setup -E setup.kibana.host=kibana:5601 -E output.elasticsearch.hosts=["elasticsearch:5601"]

```

This is the error:

`Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://elasticsearch:9200: Get "http://elasticsearch:9200": lookup elasticsearch on 192.168.65.5:53: read udp 172.17.0.2:41384->192.168.65.5:53: i/o timeout]`

---

<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 5, 2022, 12:09pm UTC](https://discuss.elastic.co/t/running-filebeat-with-the-setup-command-docker/301853/2 "2022-05-05T12:09:14Z")

</div>

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