ENV Variables in Containers

Greetings fellow MikroTik and RouterOS user!

Could someone, preferably a MikroTik employee, explain how ENV Variables work in ROS container implementation? I obviously went through official documentation and this forum only similar thread is from 2022 - Container environment variable passing not working? (7.6/x86)

They feel like they work but not always/everywhere?

Example:

Container for qbittorrent based on linuxserver/qbittorrent image. Ports and timezone are set via ENV variables. Ports work timezone I don’t think so especially in container’s shell. Running date command in container’s shell gives UTC time like the timezone was never set. Running env command print some variables but none which was set during container setup. The same behaviour goes for the official containers from app menu. The interesting part is that I can see those variables in container logs.

In standard docker implementation if I set variables during container creation all of them are available to me inside the container.

I will very much appreciate all the help I cen get.

Thanks!

What version of RouterOS are you using? I see all of the ones I set in containers I’m running on 7.22b5.

From stable branch I’m using version 7.21.2