lxd容器设置时区

lxd容器默认使用UTC时间,可以这样设置容器的时区:

$ lxc config set mycontainer environment.TZ Asia/Shanghai

也可以设置lxd default profile,这样使用default profile新建的容器会继承时区设置:

$ lxc profile set default environment.TZ Asia/Shanghai

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.