moby--moby/graph
Tonis Tiigi 504e67b867 Calculate hash based image IDs on pull
Generate a hash chain involving the image configuration, layer digests,
and parent image hashes. Use the digests to compute IDs for each image
in a manifest, instead of using the remotely specified IDs.

To avoid breaking users' caches, check for images already in the graph
under old IDs, and avoid repulling an image if the version on disk under
the legacy ID ends up with the same digest that was computed from the
manifest for that image.

When a calculated ID already exists in the graph but can't be verified,
continue trying SHA256(digest) until a suitable ID is found.

"save" and "load" are not changed to use a similar scheme. "load" will
preserve the IDs present in the tar file.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-10-12 10:51:28 -07:00
..
tags
export.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
graph.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
graph_test.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
history.go
import.go Revert "Merge pull request #16228 from duglin/ContextualizeEvents" 2015-09-29 14:26:51 -04:00
list.go
load.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
load_unsupported.go
mutex.go
pools_test.go Move types from progressreader and broadcastwriter to broadcaster 2015-10-06 22:20:07 -04:00
pull.go Revert "Merge pull request #16228 from duglin/ContextualizeEvents" 2015-09-29 14:26:51 -04:00
pull_v1.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
pull_v2.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
pull_v2_test.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
push.go Revert "Merge pull request #16228 from duglin/ContextualizeEvents" 2015-09-29 14:26:51 -04:00
push_v1.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
push_v2.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
registry.go
service.go Merge pull request #16076 from vbatts/export_image_times 2015-10-01 21:50:43 +01:00
tags.go Move types from progressreader and broadcastwriter to broadcaster 2015-10-06 22:20:07 -04:00
tags_unit_test.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00