Skip to content

Instantly share code, notes, and snippets.

@6londe
Last active April 28, 2020 15:22
Show Gist options
  • Save 6londe/9bd95226faa72d3c89fcd283e57955fa to your computer and use it in GitHub Desktop.
Save 6londe/9bd95226faa72d3c89fcd283e57955fa to your computer and use it in GitHub Desktop.

Set timezone of docker containers

1. Set timezone of host OS

$ sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime

2. Fix docker-compose.yml to use timezone of host OS

...
  volumes:
    - /etc/localtime:/etc/localtime:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment