title: How to measure Docker startup time
body: <p>I'm buiding a docker image from a jar file ( Spring Boot application), but  I could not use the  command <code>time docker run my-image</code> to check the startup time of the container. Because of the output from Spring Boot, the <code>docker run</code> command will not stop.</p>
  
  <p>The Dockerfile:</p>
  
  <pre><code>FROM openjdk:8-jre-alpine
  VOLUME /tmp
  ADD target/myApp-0.0.1-SNAPSHOT.jar app.jar
  RUN sh -c 'touch /app.jar'
  ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar" ]
  </code></pre>
  
  <p>Is there other way to measure the startup time of the container?</p>
  
  <p>Thanks in advance!</p>