docker容器时间问题

启动image带上-v参数:
-v /etc/localtime:/etc/localtime

在catalina.sh 第一行加:
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8 -Duser.timezone=GMT+08"

参考:
https://blog.csdn.net/aslgm_1/article/details/71709887
https://blog.csdn.net/zishan007/article/details/12993211

你可能感兴趣的:(docker容器时间问题)