# Wrong path given by Doppler using docker-compose/Dockerfile

**URL:** <https://community.doppler.com/t/wrong-path-given-by-doppler-using-docker-compose-dockerfile/1648>\
**Category:** Need Help\
**Created:** [October 14, 2024, 8:40am UTC](https://community.doppler.com/t/wrong-path-given-by-doppler-using-docker-compose-dockerfile/1648 "2024-10-14T08:40:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quentin\_Cherifi](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/quentin_cherifi/32/1147_2.png) [@Quentin\_Cherifi](https://community.doppler.com/u/Quentin_Cherifi)\
**Post date:** [October 14, 2024, 8:40am UTC](https://community.doppler.com/t/wrong-path-given-by-doppler-using-docker-compose-dockerfile/1648/1 "2024-10-14T08:40:40Z")

</div>

Hi there,

We just started to try Doppler in my company to improve our secrets management 🙂

No problem to setup envs, and first tokens to retrieve secrets.

However, when using

```auto
["doppler", "run", "--", "echo $PATH"]
The PATH I get is my host path and not the container path from the Dockerfile.

```

Consequences, it cannot find supervisord binary and configuration which are only available in the containers and not on my host filesystem.

If I try to run supervisord instead of echoing the PATH I get

```auto
| Doppler Error: fork/exec /usr/bin/supervisord -c /etc/supervisord.conf: no such file or directory

```

Am I missing something about PATH, binary management using doppler and docker/docker-compose ?

EDIT: I am sure supervisord and supervisord.conf are packed in the images I am starting with docker-compose. I did a manual check.

Best regards

---

<div class="post-metadata">

**Author:** ![watsonian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/watsonian/32/267_2.png) [@watsonian](https://community.doppler.com/u/watsonian)\
**Post date:** [October 15, 2024, 2:10pm UTC](https://community.doppler.com/t/wrong-path-given-by-doppler-using-docker-compose-dockerfile/1648/2 "2024-10-15T14:10:10Z")

</div>

Hi @Quentin_Cherifi!

Welcome to the Doppler Community!

The `PATH` inside your container should reflect the container path and not your local system path. Could you share your Dockerfile so I could attempt to reproduce this to see what’s going on for you?

Regards,  
-Joel

---

<div class="post-metadata">

**Author:** ![Quentin\_Cherifi](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/quentin_cherifi/32/1147_2.png) [@Quentin\_Cherifi](https://community.doppler.com/u/Quentin_Cherifi)\
**Post date:** [October 29, 2024, 3:48pm UTC](https://community.doppler.com/t/wrong-path-given-by-doppler-using-docker-compose-dockerfile/1648/3 "2024-10-29T15:48:27Z")

</div>

Hey,

Thanks for your answer. Hmmm, I found a workaround, I don’t use supervisord and call directly php-fpm and it works.  
For now, that works locally, but I will need to figure out why it’s not working properly with supervisord binary to eventually deploy on further environments.

Regards,

Quentin
