title: How to synchronize version control system revisions with Docker image versions?
body: <p>What is a common, conventional pattern for associating Docker image versions in Docker registry and Git (for example) revisions? So user of repository will be able to switch at any revision and recreate environment that corresponds to that specific revision.</p>
  
  <p>For example I have a repository with a project and integration server which automatically builds Docker images for every commit in repository. How these images can be tied to corresponding repository commits?</p>
  
  <p>Using Docker you have two different repositories - with a project and with Docker images - so they must be synchronized, but what are recommended workflows for this?   </p>