How to set timezone for docker container when TZ env doesn't work?

ChickenSalad

Cadet
Joined
Jul 10, 2022
Messages
8
I have a mix of apps run via Launch Docker Image.

Some of them have tzdata, so I can just set the TZ environment variable to set their timezone. But a small handful of them seem to be based on alpine and don't have the tzdata package installed. From googling, the answer to this is to pass /etc/localtime and /etc/timezone, but that doesn't work in TrueNAS Scale anymore.

What's the right way to set the timezone in this case?
 
Top