Docker容器与宿主机时间同步

在Dockerfile里面加上

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

你可能感兴趣的:(Docker容器与宿主机时间同步)