# Running the Filebeat Container - Docker

**URL:** <https://discuss.elastic.co/t/running-the-filebeat-container-docker/217656>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 3, 2020, 3:46pm UTC](https://discuss.elastic.co/t/running-the-filebeat-container-docker/217656 "2020-02-03T15:46:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daz1761](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daz1761/32/61856_2.png) [@daz1761](https://discuss.elastic.co/u/daz1761)\
**Post date:** [February 3, 2020, 3:46pm UTC](https://discuss.elastic.co/t/running-the-filebeat-container-docker/217656/1 "2020-02-03T15:46:21Z")

</div>

I am reading the docs with respect to spinning up a Filebeat container and I am confused with these two `--volume` mounts:

```
--volume="/var/lib/docker/containers:/var/lib/docker/containers:ro" 
--volume="/var/run/docker.sock:/var/run/docker.sock:ro" 

```

Currently I have this: `--volume ./logs:/var/log` only, because I am reading from a text file (setup in the yml file), but soon I will be using `Autodiscover` so I imagine I wont need this volume mount? However, will I need the two volume mounts above?

What is also throwing me is the `:ro` at the end of the two volume mounts above. Can someone please explain.

---

<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:** [March 2, 2020, 3:46pm UTC](https://discuss.elastic.co/t/running-the-filebeat-container-docker/217656/2 "2020-03-02T15:46:23Z")

</div>

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