Docker ubuntu 设置 时区

FROM ubuntu:latest

RUN apt-get update

#timezone
RUN export DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y tzdata
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata

Leave a Comment

电子邮件地址不会被公开。 必填项已用*标注

Scroll to Top