文档说明:只记录关键地方;
容器Dockerfile设置时区
ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
debian 容器Dockerfile
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
查看时区
timedatectl
标签:容器,TZ,设置,share,echo,etc,ENV
From: https://www.cnblogs.com/jingjingxyk/p/16840404.html