Skip to content

How to Set Timezone in Docker Container via Docker-Compose #4083

Closed Answered by piyushpranjal03
piyushpranjal03 asked this question in Questions
Discussion options

You must be logged in to vote

This is resolved. After mapping these additional volumes it is working.
Note: TZ environment has been removed from docker-compose file.

volumes:
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro

Found this solution from this issue:
#3390

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by piyushpranjal03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant