在宿主机下执行 timedatectl set-timezone Asia/Shanghai
切换docker基础镜像 baseImage ="flyceek/centos7-jdk"
docker run方式启动加上 -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone:ro 即可
在宿主机下执行 timedatectl set-timezone Asia/Shanghai
切换docker基础镜像 baseImage ="flyceek/centos7-jdk"
docker run方式启动加上 -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone:ro 即可