Noob question about passing timezone to docker container

thehawk1337

Cadet
Joined
Jul 28, 2022
Messages
2
Hi, I recently built a new nas running Truenas Scale. Docker is also new to me. After some struggles I got frigate working to record from a camera. However, the time of frigate is incorrect. Some googling tells me that I need to pass the timezone to the docker container. In docker compose it would be:

Code:
/etc/localtime:/etc/localtime:ro


But I'm not using docker compose for as far as I understand. I added frigate via the "launch docker image" button when you're at the apps tab in the UI.
I configured some host path volumes fine since they're on /mnt but i can't map anything from /etc. I'm sure it's some noob thing that I just can't seem to google / search on these forums (found some threads about docker-compose as I mentioned).

Could anyone help me out? Thanks! :)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Depends how you launched your container...

TrueCharts apps have a Timezone variable already in the setup.

Using the Launch Docker button you have the option to add the "container args" with something like "TZ=Asia/Singapore"

If you launched it from the CLI directly in docker, adding -e TZ="Asia/Singapore"
 
Top