less than 1 minute read

To set which timezone your docker container should use, add the following to your Dockerfile:

ENV TZ=America/Los_Angeles
RUN ln --force --no-dereference --symbolic /usr/share/zoneinfo/"${TZ}" /etc/localtime \
 && echo "${TZ}" > /etc/timezone

Via serverfault.com.

Leave a comment