Gitlab Premium Edition

Skip to content

docker container timezone does not match the host timezone

Most of the time the time in the docker logs is off by one or two hours. This is due to a missconfigured timezone in the container. To fix the problem, just mount the /etc/timezone file as read only into the container, e.g:

volumes:
  - "/etc/localtime:/etc/localtime:ro"
Edited by Jonas Hügel