Convertigo Public Knowledge base

How to change the Timezone in a Docker container?

By default, a Docker container uses UTC as its timezone.

To change the Docker container Timezone, you may:

_ Specify the TZ at container creation with the follwing setting:

docker run --name convertigo -e TZ=Europe/Paris -p 28080:28080 convertigo:latest

_ Install the tzdata package in the container:

apt-get update && apt-get install -y tzdata dpkg-reconfigure tzdata

Source: https://tecadmin.net/change-timezone-in-docker-container/

(c) Convertigo 2023 https://www.convertigo.com