title: How to get a rolling latest tag in the docker registry
body: <p>I'm trying to understand the docker registry and it's tagging.</p>
  
  <p>I'm actually using the gitlab registry.</p>
  
  <p>Scenario:</p>
  
  <p>I push <code>image1:latest</code></p>
  
  <p>Five minutes later I push <code>image1:latest</code> again.</p>
  
  <p>I only have one instance of <code>image1:latest</code> in my registry.</p>
  
  <p>I'm guessing that a tag is just text with no semantic meaning which is understood. So the registry cannot keep only one image with the <code>latest</code> tag. It'd doesn't understand that <code>latest</code> means something.</p>
  
  <p>What I need, if I am understanding this correctly, is a way to only have one image with the <code>latest</code> tag. So in my example above, I would see..</p>
  
  <p><code>image1 - Uploaded 5 minutes ago</code></p>
  
  <p><code>image1:latest - Uploaded 30 seconds ago</code></p>
  
  <p>If it doesn't work this way then what is the correct versioning strategy for containers?</p>