I write the docker file for run the jar file and it does not create the log file for see the console below is my docker file
From ubuntu
RUN apt-get update &
The exec form of CMD doesn't know what redirection is, that's a shell feature.
Either use stdout for logging.
CMD ["java","-jar","/real_estate_false.jar"]
If you really need a log file in the container, run the command in a shell
CMD ["sh", "-c", "java -jar /real_estate_false.jar > var/log/jar.log"]
CMD java -jar /real_estate_false.jar > var/log/jar.log