Category: Docker, gitlab

By default, Linux and Docker use UTC timezone. In this post I’m gonna discuss about configuring Linux and Docker container timezones. All the source codes which related to this post available in gitlab.

In order to set the timezone in Docker container we can set the TZ environment variable with the timezone inside the Docker container. To use the TZ environment variable we need to install the tzdata package in docker container.

Related Articles