title: Outputting Spring Boot log In docker Container
body: <p>I am looking to just link the log to Spring boot admin. But using the simple logging properties although it work in a jar outside of docker. it doesn't output anything in the container. I tried a mix of permission with no avail.</p>
  <p>I tried different distro in docker but no joy.</p>
  <p>I posted the code to this address and use just a basic example based of <a href="https://start.spring.io/" rel="nofollow noreferrer">https://start.spring.io/</a> to simplify things.</p>
  <p><a href="https://github.com/peans99/java" rel="nofollow noreferrer">https://github.com/peans99/java</a></p>
  <p>the only thing in the application.properties file is :</p>
  <pre><code>logging.file.path=logs
  </code></pre>
  <p>dockerfile</p>
  <pre><code>FROM amd64/alpine:3.12.3
  #installing Java
  RUN apk add openjdk11
  RUN addgroup -S spring &amp;&amp; adduser -S spring -G spring
  RUN chown -R spring:spring /opt
  RUN chmod 777 -R /opt
  USER spring:spring
  ARG JAR_FILE=target/*.jar
  COPY ${JAR_FILE} /opt/app.jar
  ENTRYPOINT [&quot;java&quot;,&quot;-jar&quot;,&quot;/opt/app.jar&quot;, &quot;--trace&quot;]
  </code></pre>
  <p>Thanks for your help</p>