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 &
To just run myapp.jar in docker (e.g. to avoid installing java on the host) you can just run:
docker run -v `pwd`:/mnt java:8 java -jar /mnt/myapp.jar