Need to change timezone of the Wazuh container

50 views
Skip to first unread message

Daniel D'Angeli

unread,
Jun 24, 2022, 5:35:06 AM6/24/22
to Wazuh mailing list
HI,

the Wazuh container has UTC by default, i need to change it to CEST.

I tried by adding the environment variable TZ=Europe/Rome but it didnt work

Any help?

Daniel D'Angeli

unread,
Jun 24, 2022, 9:02:23 AM6/24/22
to Wazuh mailing list
Fixed it by adding the following line after volume declaration:

entrypoint: [bash,-c,"ln -fs /usr/share/zoneinfo/Europe/Rome /etc/localtime && DEBIAN_FRONTEND=noninteractive apt install tzdata"]

Daniel D'Angeli

unread,
Jun 24, 2022, 9:10:42 AM6/24/22
to Wazuh mailing list
DO NOT USE THE ONE ABOVE, IT MAKES THE CONTAINER CRASH

use this one instead:

entrypoint: [bash,-c,"ln -fs /usr/share/zoneinfo/Europe/Rome /etc/localtime && DEBIAN_FRONTEND=noninteractive apt install tzdata && /init"]
Reply all
Reply to author
Forward
0 new messages