# Change environment variable of a container

**URL:** <https://forums.balena.io/t/change-environment-variable-of-a-container/372507>\
**Category:** balenaOS\
**Tags:** hostos\
**Created:** [November 20, 2024, 11:32am UTC](https://forums.balena.io/t/change-environment-variable-of-a-container/372507 "2024-11-20T11:32:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![berkayg](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@berkayg](https://forums.balena.io/u/berkayg)\
**Post date:** [November 20, 2024, 11:32am UTC](https://forums.balena.io/t/change-environment-variable-of-a-container/372507/1 "2024-11-20T11:32:50Z")

</div>

Hello

Is it possible to change an env variable of a container without using dashboard? My device has no internet access so I need to change 1 env variable in a container from HostOS which was defined previously from dashboard.

Is this possible with Balena?

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [November 20, 2024, 11:51am UTC](https://forums.balena.io/t/change-environment-variable-of-a-container/372507/2 "2024-11-20T11:51:04Z")

</div>

Hello @berkayg

Could you please tell us more details on how would you like to change the environment variable if the device has no Internet access?

Could you please share us more about the use case here?

Thanks!
