docker 启动服务的时候挂载本地宿主机文件 -v eg: docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --name mysql3306 mysql:5.7 docker run -it --name=javadatetest -p 18765:8761 -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro testjava25:latest