1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration-cli
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
check_test.go
docker_api_attach_test.go
docker_api_build_test.go
docker_api_containers_test.go
docker_api_create_test.go
docker_api_events_test.go
docker_api_exec_resize_test.go
docker_api_exec_test.go
docker_api_images_test.go
docker_api_info_test.go
docker_api_inspect_test.go
docker_api_logs_test.go
docker_api_network_test.go
docker_api_resize_test.go
docker_api_stats_test.go
docker_api_test.go
docker_api_version_test.go
docker_api_volumes_test.go
docker_cli_attach_test.go
docker_cli_attach_unix_test.go
docker_cli_build_test.go
docker_cli_build_unix_test.go
docker_cli_by_digest_test.go
docker_cli_commit_test.go
docker_cli_config_test.go
docker_cli_cp_from_container_test.go
docker_cli_cp_test.go
docker_cli_cp_to_container_test.go
docker_cli_cp_utils.go
docker_cli_create_test.go Merge pull request #15503 from ibuildthecloud/revert-label 2015-10-12 10:03:18 -07:00
docker_cli_daemon_test.go
docker_cli_diff_test.go
docker_cli_events_test.go
docker_cli_events_unix_test.go
docker_cli_exec_test.go
docker_cli_exec_unix_test.go
docker_cli_experimental_test.go Correct mismatched function names (UID() and Gid()) 2015-10-12 10:58:33 -04:00
docker_cli_export_import_test.go
docker_cli_external_graphdriver_unix_test.go
docker_cli_help_test.go
docker_cli_history_test.go
docker_cli_images_test.go
docker_cli_import_test.go
docker_cli_info_test.go
docker_cli_inspect_experimental_test.go
docker_cli_inspect_test.go
docker_cli_kill_test.go
docker_cli_links_test.go
docker_cli_links_unix_test.go
docker_cli_login_test.go
docker_cli_logs_test.go
docker_cli_nat_test.go
docker_cli_netmode_test.go
docker_cli_network_test.go
docker_cli_pause_test.go
docker_cli_port_test.go
docker_cli_proxy_test.go
docker_cli_ps_test.go
docker_cli_pull_local_test.go
docker_cli_pull_test.go Calculate hash based image IDs on pull 2015-10-12 10:51:28 -07:00
docker_cli_pull_trusted_test.go
docker_cli_push_test.go
docker_cli_rename_test.go
docker_cli_restart_test.go
docker_cli_rm_test.go
docker_cli_rmi_test.go
docker_cli_run_test.go
docker_cli_run_unix_test.go
docker_cli_save_load_test.go update test using c.Assert replace c.Fatal 2015-10-12 06:32:21 -04:00
docker_cli_save_load_unix_test.go
docker_cli_search_test.go
docker_cli_start_test.go
docker_cli_start_volume_driver_unix_test.go
docker_cli_stats_test.go
docker_cli_tag_test.go
docker_cli_top_test.go
docker_cli_v2_only.go
docker_cli_version_test.go
docker_cli_volume_test.go
docker_cli_wait_test.go
docker_hub_pull_suite_test.go
docker_test_vars.go
docker_utils.go
registry.go
registry_mock.go
requirements.go
requirements_unix.go
test_vars_exec.go
test_vars_noexec.go
test_vars_unix.go
test_vars_windows.go
trust_server.go
utils.go