admin管理员组文章数量:1026989
修改ubuntu docker timezone
搜了30min解决的,记录一下。
# check now timezone
$ date -R
Sun, 21 Oct 2018 23:35:04 +0800# change timezone to Shanghai if it is wrong
apt-get update
apt-get install tzdataecho "Asia/Shanghai" > /etc/timezone
rm -f /etc/localtime
# maybe you need to rm -rf /usr/share/zoneinfo/UTC
dpkg-reconfigure -f noninteractive tzdata# output
Current default time zone: 'Asia/Shanghai'
Local time is now: Sun Oct 21 22:33:36 CST 2018.
Universal Time is now: Sun Oct 21 14:33:36 UTC 2018.
参考:
修改ubuntu docker timezone
搜了30min解决的,记录一下。
# check now timezone
$ date -R
Sun, 21 Oct 2018 23:35:04 +0800# change timezone to Shanghai if it is wrong
apt-get update
apt-get install tzdataecho "Asia/Shanghai" > /etc/timezone
rm -f /etc/localtime
# maybe you need to rm -rf /usr/share/zoneinfo/UTC
dpkg-reconfigure -f noninteractive tzdata# output
Current default time zone: 'Asia/Shanghai'
Local time is now: Sun Oct 21 22:33:36 CST 2018.
Universal Time is now: Sun Oct 21 14:33:36 UTC 2018.
参考:
本文标签: 修改ubuntu docker timezone
版权声明:本文标题:修改ubuntu docker timezone 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/IT/1694654045a254574.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论