1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runconfig
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
..
fixtures
compare.go
compare_test.go
config.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
config_test.go
config_unix.go
config_windows.go
exec.go
exec_test.go
hostconfig.go
hostconfig_test.go Network remote APIs using new router, --net=<user-defined-network> changes 2015-10-07 03:54:19 -07:00
hostconfig_unix.go Network remote APIs using new router, --net=<user-defined-network> changes 2015-10-07 03:54:19 -07:00
hostconfig_windows.go
merge.go
merge_test.go
parse.go Merge pull request #16645 from mavenugo/ux 2015-10-07 10:44:58 -07:00
parse_test.go fix the error msg of func TestParseRunVolumes 2015-10-10 14:56:50 +08:00
parse_unix.go Network remote APIs using new router, --net=<user-defined-network> changes 2015-10-07 03:54:19 -07:00
parse_windows.go