03778bd1d2
ContinueOnError assumes that something of type errcode.Errors contains at least one error. This is generally true, but might not be true if the remote registry returns an empty error body or invalid JSON. Add the bounds check, and in the case where it fails, allow fallbacks to v1. Fixes #18481 Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> |
||
---|---|---|
.. | ||
auth.go | ||
auth_test.go | ||
authchallenge.go | ||
config.go | ||
config_test.go | ||
config_unix.go | ||
config_windows.go | ||
endpoint.go | ||
endpoint_test.go | ||
reference.go | ||
registry.go | ||
registry_mock_test.go | ||
registry_test.go | ||
service.go | ||
service_v1.go | ||
service_v2.go | ||
session.go | ||
token.go | ||
types.go |