1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/registry
Aaron Lehmann 9d6acbee92 When a manifest is not found, allow fallback to v1
PR #18590 caused compatibility issues with registries such as gcr.io
which support both the v1 and v2 protocols, but do not provide the same
set of images over both protocols. After #18590, pulls from these
registries would never use the v1 protocol, because of the
Docker-Distribution-Api-Version header indicating that v2 was supported.

Fix the problem by making an exception for the case where a manifest is
not found. This should allow fallback to v1 in case that image is
exposed over the v1 protocol but not the v2 protocol.

This avoids the overly aggressive fallback behavior before #18590 which
would allow protocol fallback after almost any error, but restores
interoperability with mixed v1/v2 registry setups.

Fixes #18832

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-12-21 18:19:38 -08:00
..
auth.go Move IndexInfo and ServiceConfig types to api/types/registry/registry.go 2015-12-14 11:28:02 -05:00
auth_test.go Move the TestEncodeAuth test to the correct package. 2015-12-15 13:36:52 -05:00
authchallenge.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
config.go Update Named reference with validation of conversions 2015-12-16 11:58:52 -08:00
config_test.go Deprecating ResolveRepositoryName 2015-01-08 20:14:58 +00:00
config_unix.go Check if CertsDir is not empty 2015-11-25 18:12:19 +01:00
config_windows.go Update Windows TP3 registry endpoints 2015-08-07 14:03:46 -07:00
endpoint.go Move IndexInfo and ServiceConfig types to api/types/registry/registry.go 2015-12-14 11:28:02 -05:00
endpoint_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
reference.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
registry.go When a manifest is not found, allow fallback to v1 2015-12-21 18:19:38 -08:00
registry_mock_test.go Update Named reference with validation of conversions 2015-12-16 11:58:52 -08:00
registry_test.go Update Named reference with validation of conversions 2015-12-16 11:58:52 -08:00
service.go Do not fall back to the V1 protocol when we know we are talking to a V2 registry 2015-12-16 15:02:03 -08:00
service_v1.go Update Named reference with validation of conversions 2015-12-16 11:58:52 -08:00
service_v2.go Do not fall back to the V1 protocol when we know we are talking to a V2 registry 2015-12-16 15:02:03 -08:00
session.go Update Named reference with validation of conversions 2015-12-16 11:58:52 -08:00
token.go Registry: remove unwanted return variable name 2015-06-09 10:58:33 +08:00
types.go Update Named reference with validation of conversions 2015-12-16 11:58:52 -08:00