# How to get filebeat docker image's Dockerfile

**URL:** https://discuss.elastic.co/t/how-to-get-filebeat-docker-images-dockerfile/145486
**Category:** Beats
**Tags:** filebeat
**Created:** [August 22, 2018, 5:37am UTC](https://discuss.elastic.co/t/how-to-get-filebeat-docker-images-dockerfile/145486 "2018-08-22T05:37:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chao\_Lee](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@Chao\_Lee](https://discuss.elastic.co/u/Chao_Lee)
#### Post date: [August 22, 2018, 5:37am UTC](https://discuss.elastic.co/t/how-to-get-filebeat-docker-images-dockerfile/145486/1 "2018-08-22T05:37:47Z")

</div>

How can I get the filebeat docker iamge's docker file?

Here is the document says

```auto
FROM docker.elastic.co/beats/filebeat:6.3.2
COPY filebeat.yml /usr/share/filebeat/filebeat.yml
USER root
RUN chown root:filebeat /usr/share/filebeat/filebeat.yml
USER filebeat

```

how can i run it in the docker-entrypoint file or CMD

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [August 24, 2018, 2:32pm UTC](https://discuss.elastic.co/t/how-to-get-filebeat-docker-images-dockerfile/145486/2 "2018-08-24T14:32:03Z")

</div>

All Beat images are created from the source contained in [https://github.com/elastic/beats-docker](https://github.com/elastic/beats-docker).

The Dockerfile is generated from a template in order to reduce duplication. [https://github.com/elastic/beats-docker/blob/master/templates/Dockerfile.j2](https://github.com/elastic/beats-docker/blob/master/templates/Dockerfile.j2)

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [August 24, 2018, 2:36pm UTC](https://discuss.elastic.co/t/how-to-get-filebeat-docker-images-dockerfile/145486/3 "2018-08-24T14:36:14Z")

</div>

FYI There's metadata in the image labels that points to the source repo too. It follows [http://label-schema.org/rc1/](http://label-schema.org/rc1/).

`docker inspect docker.elastic.co/beats/filebeat:6.3.2 | grep org.label`

---

<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: [September 21, 2018, 2:36pm UTC](https://discuss.elastic.co/t/how-to-get-filebeat-docker-images-dockerfile/145486/4 "2018-09-21T14:36:14Z")

</div>

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