dotcloud/docker — pull request #3417 by Sjord (2014-01-01 16:49:44+00:00)
Title: Fix issue #3375 - Return most recent image from the cache

ImageGetCached searches for an image from the cache. Instead of returning the
first image it finds, it should return the most recently created image. When a
build with --no-cache then adds a new image with the same parameters, it is
used instead of the old, existing image.