moby/distribution
Sebastiaan van Stijn 07d2ad30e5
daemon/cluster: Cluster.imageWithDigestString: include mirrors to resolve digest
If the daemon is configured to use a mirror for the default (Docker Hub)
registry, the endpoint did not fall back to querying the upstream if the mirror
did not contain the given reference.

For pull-through registry-mirrors, this was not a problem, as in that case the
registry would forward the request, but for other mirrors, no fallback would
happen. This was inconsistent with how "pulling" images handled this situation;
when pulling images, both the mirror and upstream would be tried.

This patch brings the daemon-side lookup of image-manifests on-par with the
client-side lookup (the GET /distribution endpoint) as used in API 1.30 and
higher.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-04 16:53:45 +01:00
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata distribution: format code with gofumpt 2023-06-29 00:30:52 +02:00
utils migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
xfer migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
config.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
errors.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
errors_test.go distribution: un-export internal errors and error-utilities 2022-04-21 22:53:02 +02:00
manifest.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
manifest_test.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
pull.go distribution: Add Tags 2023-10-16 14:19:27 +02:00
pull_v2.go distribution: Add Tags 2023-10-16 14:19:27 +02:00
pull_v2_test.go vendor: github.com/docker/distribution v2.8.3 2023-10-11 17:11:25 +02:00
pull_v2_unix.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
pull_v2_windows.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
push.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
push_v2.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
push_v2_test.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
registry.go distribution: newRepository: remove naked return and intermediate vars 2023-09-08 15:44:58 +02:00
registry_unit_test.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
repository.go daemon/cluster: Cluster.imageWithDigestString: include mirrors to resolve digest 2024-01-04 16:53:45 +01:00