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

**URL:** https://discuss.elastic.co/t/re-usr-local-bin-docker-entrypoint-line-8-exec-filebeat-not-found/177648
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [April 19, 2019, 4:37pm UTC](https://discuss.elastic.co/t/re-usr-local-bin-docker-entrypoint-line-8-exec-filebeat-not-found/177648 "2019-04-19T16:37:09Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Michele\_Chersich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michele_chersich/32/44470_2.png) [@Michele\_Chersich](https://discuss.elastic.co/u/Michele_Chersich)
#### Post date: [April 26, 2019, 5:14pm UTC](https://discuss.elastic.co/t/re-usr-local-bin-docker-entrypoint-line-8-exec-filebeat-not-found/177648/4 "2019-04-26T17:14:01Z")

</div>

For some reason filebeat's home directory is not in PATH.  
Overriding the default entrypoint solves the issue:

`entrypoint: bash -c 'export PATH=$PATH:/usr/share/filebeat && /usr/local/bin/docker-entrypoint -e'`

---

_[View the full topic](https://discuss.elastic.co/t/re-usr-local-bin-docker-entrypoint-line-8-exec-filebeat-not-found/177648)._
