1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver
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
..
aufs Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
btrfs Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
devmapper Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
graphtest Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
overlay Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
vfs Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
windows Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
zfs Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
driver.go Comment: add some lines back 2015-10-12 19:34:58 +08:00
driver_freebsd.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
driver_linux.go daemon/graphdriver fix lint errors/warnings 2015-08-17 19:27:36 +00:00
driver_unsupported.go daemon/graphdriver fix lint errors/warnings 2015-08-17 19:27:36 +00:00
driver_windows.go daemon/graphdriver fix lint errors/warnings 2015-08-17 19:27:36 +00:00
fsdiff.go Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
imagerestorer.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
plugin.go Create extpoint for graphdrivers 2015-09-09 20:24:35 -04:00
plugin_unsupported.go Create extpoint for graphdrivers 2015-09-09 20:24:35 -04:00
proxy.go Create extpoint for graphdrivers 2015-09-09 20:24:35 -04:00