# 修改时区 sudo timedatectl set-timezone Asia/Shanghai # 查看时区列表 timedatectl list-timezones # 验证时区 timedatectl
ENV TIME_ZONE=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime