Skip to content

Is there anyway to set timezone in Docker? #2949

Discussion options

You must be logged in to vote

TZ depends on tzdata being available, which might not be the case.

Run docker container with -v /etc/timezone:/etc/timezone:ro instead, will use your host timezone. If it still doesn't work try -v /etc/localtime:/etc/localtime:ro instead.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zycboss
Comment options

@Foxbond
Comment options

Answer selected by JustArchi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants