How to change timezone in a running Docker Container

  • The timezone info folder is /usr/share/zoneinfo
  • The current timezone info file is /etc/localtime
  • The current zoneinfo is a link file point to a special timezone file in the timezone info filder. So, we can change the link file point to another timezone like following example
ln -s /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime
  • Done

Leave a Reply