添加 -v /etc/localtime:/etc/localtime 启动容器 docker run -d -v /etc/localtime:/etc/localtime -p 8888:8080 tomcat:latest
docker exec -it <容器名> /bin/bash ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime docker restart <容器名>