# Can't Start Filebeat from docker compose

**URL:** https://discuss.elastic.co/t/cant-start-filebeat-from-docker-compose/247788
**Category:** Beats
**Tags:** filebeat
**Created:** [September 7, 2020, 3:57pm UTC](https://discuss.elastic.co/t/cant-start-filebeat-from-docker-compose/247788 "2020-09-07T15:57:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mostafa\_Hamdy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mostafa_hamdy/32/75226_2.png) [@Mostafa\_Hamdy](https://discuss.elastic.co/u/Mostafa_Hamdy)
#### Post date: [September 7, 2020, 3:57pm UTC](https://discuss.elastic.co/t/cant-start-filebeat-from-docker-compose/247788/1 "2020-09-07T15:57:33Z")

</div>

I am trying to start filebeat using docker compose. but i am facing this error

> /usr/local/bin/docker-entrypoint: line 8: exec: filebeat: not found

This is my docker-compose

```auto
    filebeat:
        image: docker.elastic.co/beats/filebeat:7.9.0
        user: ${CURRENT_UID}
        restart: always
        volumes:
          - ./filebeat.yml:/usr/share/filebeat/filebeat.yml
          - ./filebeat:/usr/share/filebeat/data
          - /var/run/docker.sock:/var/run/docker.sock
          # This is needed for filebeat to load container log path as specified in filebeat.yml
          - /var/lib/docker/containers/:/var/lib/docker/containers/:ro
          - /var/log/filebeat-logs:/var/lib/filebeat-logs
        # disable strict permission checks
        command: ["--strict.perms=false"]

```

When i run it as root it works, but for certain reasons i can't run it as root

---

<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: [October 5, 2020, 5:57pm UTC](https://discuss.elastic.co/t/cant-start-filebeat-from-docker-compose/247788/2 "2020-10-05T17:57:42Z")

</div>

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