Docker容器时间与宿主机差8小时
直接在dockerfile文件中编写[root@k8s-publish k8sjava]# cat DockerfileFROM openjdk:8-jdk-alpineMAINTAINER phCOPY server /serverRUN mkdir -p /java/log/ \&& touch /java/log/java.log \&...
·
直接在dockerfile文件中编写
[root@k8s-publish k8sjava]# cat Dockerfile
FROM openjdk:8-jdk-alpine
MAINTAINER ph
COPY server /server
RUN mkdir -p /java/log/ \
&& touch /java/log/java.log \
&& apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone
更多推荐
已为社区贡献9条内容
所有评论(0)