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 Add integration cli trust tests 2015-07-24 14:08:20 -07:00
check_test.go Merge pull request #13777 from cpuguy83/graphdriver_extpoints 2015-10-08 13:46:42 -07:00
docker_api_attach_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_api_build_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_api_containers_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_api_create_test.go Minor fix: remove redundant tag name in error message of create failed. 2015-08-30 10:43:33 +08:00
docker_api_events_test.go Send resp immediately on GET /events 2015-07-02 11:45:24 -04:00
docker_api_exec_resize_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_api_exec_test.go Make exec start return proper error codes 2015-10-02 14:40:22 -04:00
docker_api_images_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_api_info_test.go add docker server version to /info 2015-09-21 21:15:32 +08:00
docker_api_inspect_test.go Added tags list to /images/:id/json api. 2015-09-10 11:55:01 +03:00
docker_api_logs_test.go refactor logs to not use internal data structures 2015-10-07 15:44:16 -07:00
docker_api_network_test.go Network remote APIs using new router, --net=<user-defined-network> changes 2015-10-07 03:54:19 -07:00
docker_api_resize_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_api_stats_test.go integration-cli: add cli/api stats tests when container not found 2015-09-17 18:20:25 +02:00
docker_api_test.go Ensure body is closed after error is checked 2015-07-23 14:34:38 +02:00
docker_api_version_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_api_volumes_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_attach_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_attach_unix_test.go Fix TestAttachClosedOnContainerStop racey test 2015-09-29 16:57:58 +02:00
docker_cli_build_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_build_unix_test.go Add ulimit to docker build. 2015-07-23 10:26:06 +08:00
docker_cli_by_digest_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_commit_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_config_test.go Add missing defer to delete temp dir 2015-09-01 07:19:38 -07:00
docker_cli_cp_from_container_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_cp_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_cp_to_container_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_cp_utils.go Fix docker cp Behavior With Symlinks 2015-07-30 12:14:28 -07:00
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 Fix docker daemon exit immediately after starting without -H option closes #16927 2015-10-12 04:49:25 -04:00
docker_cli_diff_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_events_test.go Resolves #16458 - filter events by labels. 2015-10-02 16:33:20 -04:00
docker_cli_events_unix_test.go Events for OOM needs to be shift to an earlier time 2015-09-21 10:18:08 +08:00
docker_cli_exec_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_exec_unix_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
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 Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_external_graphdriver_unix_test.go Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
docker_cli_help_test.go Fix help test comment to align with the code 2015-10-07 05:09:46 -07:00
docker_cli_history_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_images_test.go Merge pull request #15693 from vdemeester/15659-image-label-filter 2015-10-08 11:14:51 -07:00
docker_cli_import_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_info_test.go Add builtin nodes discovery 2015-09-25 14:52:09 -07:00
docker_cli_inspect_experimental_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_inspect_test.go Make sure the container will always be unpaused on test exit 2015-09-25 05:15:16 -04:00
docker_cli_kill_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_links_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_links_unix_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_login_test.go update docker_cli_login_test.go 2015-10-09 15:08:01 +08:00
docker_cli_logs_test.go refactor logs to not use internal data structures 2015-10-07 15:44:16 -07:00
docker_cli_nat_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_netmode_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_network_test.go Network UX and integration tests 2015-10-07 03:54:27 -07:00
docker_cli_pause_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_port_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_proxy_test.go update docker_cli_proxy_test.go 2015-10-09 14:53:56 +08:00
docker_cli_ps_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_pull_local_test.go update pull-local#16756 2015-10-11 09:57:25 +08:00
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 Fix text not matching the actual tests 2015-09-29 15:26:04 +02:00
docker_cli_push_test.go Adding tests for backwards compatibility 2015-10-09 12:20:19 -07:00
docker_cli_rename_test.go use gocheck asserts instead of fatal 2015-10-09 08:34:02 -04:00
docker_cli_restart_test.go Windows: First part of CI tests (docker run) 2015-09-22 10:24:03 -07:00
docker_cli_rm_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_rmi_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_run_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
docker_cli_run_unix_test.go add test-integration-cli specifics for userns 2015-10-09 20:50:27 -04:00
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 update save-load-unix-test 2015-10-10 15:16:42 +08:00
docker_cli_search_test.go Update test 2015-10-07 07:11:45 +08:00
docker_cli_start_test.go Windows: Get Integration CLI running 2015-09-04 12:32:40 -07:00
docker_cli_start_volume_driver_unix_test.go Merge pull request #15798 from calavera/volume_driver_host_config 2015-09-08 22:05:40 -04:00
docker_cli_stats_test.go update integration-cli/docker_cli_stats_test.go use Assert statement 2015-10-09 18:24:32 +08:00
docker_cli_tag_test.go Use checkers on Integration test when possible 2015-10-10 21:51:15 +08:00
docker_cli_top_test.go Merge pull request #12648 from estesp/userns-impl 2015-10-10 11:38:07 -07:00
docker_cli_v2_only.go change flag name to better follow the other flags that start with disable; 2015-10-07 10:16:37 -07:00
docker_cli_version_test.go Test infrastructure for cross platform 2015-08-31 09:10:18 -07:00
docker_cli_volume_test.go Make docker volume behave like docker network 2015-10-07 13:36:46 -04:00
docker_cli_wait_test.go use of checkers on Integration test 2015-10-11 11:31:01 +08:00
docker_hub_pull_suite_test.go Use Assert statement to replace condition judgment 2015-10-09 17:45:28 +08:00
docker_test_vars.go Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
docker_utils.go Fix docker daemon exit immediately after starting without -H option closes #16927 2015-10-12 04:49:25 -04:00
registry.go [graph] Enforce manifest/layer digest verification 2015-08-03 11:41:23 -07:00
registry_mock.go Prevent push and pull to v1 registries by filtering the available endpoints. 2015-09-25 15:59:42 -07:00
requirements.go fix logic because jess is the worst 2015-10-09 22:21:24 -04:00
requirements_unix.go Add support for memory reservation 2015-09-23 14:02:45 +08:00
test_vars_exec.go integration-cli: add test requirement ExecSupport 2015-02-20 23:24:30 -08:00
test_vars_noexec.go integration-cli: add test requirement ExecSupport 2015-02-20 23:24:30 -08:00
test_vars_unix.go pkg/archive: adjust chmod bits on windows 2015-03-04 14:10:37 -08:00
test_vars_windows.go Change windows default permissions to 755 not 711, read access for all poses little security risk and prevents breaking existing Dockerfiles 2015-03-20 21:54:33 -07:00
trust_server.go Changing docs to reflect new names 2015-10-09 15:13:37 -07:00
utils.go Fixes 16556 CI failures 2015-09-24 11:19:00 -07:00