# Dev container: where to put environment variables when sourced locally and used in initializeCommand

**URL:** <https://forum.cursor.com/t/dev-container-where-to-put-environment-variables-when-sourced-locally-and-used-in-initializecommand/123840>\
**Category:** Help\
**Created:** [July 29, 2025, 1:02pm UTC](https://forum.cursor.com/t/dev-container-where-to-put-environment-variables-when-sourced-locally-and-used-in-initializecommand/123840 "2025-07-29T13:02:15Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![thibaut-lo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/thibaut-lo/32/72527_2.png) [@thibaut-lo](https://forum.cursor.com/u/thibaut-lo)\
**Post date:** [September 8, 2025, 9:22am UTC](https://forum.cursor.com/t/dev-container-where-to-put-environment-variables-when-sourced-locally-and-used-in-initializecommand/123840/9 "2025-09-08T09:22:07Z")

</div>

Found the issue: [Cursor Devcontainer: Lifecycle commands does not work with symlinked dotfiles](https://forum.cursor.com/t/cursor-devcontainer-lifecycle-commands-does-not-work-with-symlinked-dotfiles/132923)

---

_[View the full topic](https://forum.cursor.com/t/dev-container-where-to-put-environment-variables-when-sourced-locally-and-used-in-initializecommand/123840)._
