Skip to content

Setting the container's timezone independently from the docker host's TZ #486

Closed Answered by m90
shalafi99 asked this question in Q&A
Discussion options

You must be logged in to vote

That's a great tip. If it suits your setup, you could probably also do this when extending the existing image in a Dockerfile sth like

FROM offen/docker-volume-backup:v2

RUN apk update && \
  apk add --nocache tzdata && \
  cp /usr/share/zoneinfo/America/mycity /etc/localtime && \
  echo 'America/mycity' > /etc/timezone

which will free you from the tad of slowness.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shalafi99
Comment options

Answer selected by shalafi99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants