I am a docker file:
FROM anapsix/alpine-java:jre8 ADD service-god-sac-1.0.0-SNAPSHOT.jar app.jar ENTRYPOINT ["java", "-Xmx64m", "-XX:MaxMetaspaceSize=64m", "-jar", "/app.jar"]
When I compile and deploy the application, set the time using this:
-v / etc / localtime: / etc / localtime: ro
I noticed that the host time and hold time are synchronized, but different time, UTC time is displayed in the application logs. How can I synchronize the host machine, container and Java application with the same time?
source share