Rancher入门到精通-2.0 docker内部时间与主机时间不一致差8小时

FROM java:8

VOLUME /app

COPY app*.jar app.jar

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

RUN bash -c "touch /mall-task.jar"
EXPOSE 8090
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./uranedom","-jar","-Dspring.profiles.active=pre-prod", "-Duser.timezone=GMT+08", "/app.jar"]

增加参数

猜你喜欢

转载自blog.csdn.net/wxb880114/article/details/103664796
今日推荐