title: Measure execution time of docker container
body: <p>I have a docker image called <code>my_image</code> which launch a command and closes.</p>
  
  <p>When running the image in a container using command <code>docker run --rm my_image</code>, is it possible to measure the execution time of the container ?</p>
  
  <p><strong>Edit :</strong></p>
  
  <p>I need to see those timing information after container execution, thus I can't use <code>time</code> command.</p>
  
  <p>I somehow hoped to find some container execution history kept by docker even if <code>--rm</code> was used. But if it doesn't exist, then @tgogos' answer is suited.</p>
  
  <p>The goal is to compare execution time of several images to draw a conclusion about the different tools used.</p>