title: Order of containers in docker ps
body: <p>I believe <code>docker ps</code> lists the containers in a chronological order of their creation (newest to oldest).</p>
  
  <p>Can someone please confirm this? I’m writing a library and I need to pick the latest container. I am currently doing that by listing the container ids and picking the first one.</p>
  
  <p><code>docker ps -a -f --format '{{.ID}} | awk 'NR==1'</code></p>
  
  <p>Is this guaranteed to pick up the latest container? If not, what is the right way to do it?</p>