Time inconsistency in general are caused due to the time zone and tomcat read / etc / timezone file, the time zone settings, so we need to set the time zone file
First of all containers entering the tomcat
Excuting an order
echo "Asia/Shanghai" > /etc/timezone