moby/daemon/cluster
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
..
controllers/plugin api/types: move Plugin-types to api/types/backend 2023-12-06 02:16:02 +01:00
convert api/t/swarm: Fix deprecation for ServiceSpec.Networks 2023-11-21 10:54:53 +01:00
executor daemon/cluster: Cluster.imageWithDigestString: include mirrors to resolve digest 2024-01-04 16:53:45 +01:00
provider Add canonical import comment 2018-02-05 16:51:57 -05:00
cluster.go Plumb context through info endpoint 2023-11-10 20:09:25 +00:00
configs.go Plumb context through info endpoint 2023-11-10 20:09:25 +00:00
errors.go daemon/cluster: use string-literals for easier grep'ing 2023-07-05 12:27:01 +02:00
filters.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
filters_test.go daemon: inline filters in tests 2023-04-25 15:13:26 +02:00
helpers.go Add Swarm cluster volume supports 2022-05-13 00:55:44 +02:00
listen_addr.go daemon/cluster: format code with gofumpt 2023-06-29 00:26:32 +02:00
listen_addr_linux.go Add canonical import comment 2018-02-05 16:51:57 -05:00
listen_addr_others.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
networks.go Merge pull request #46481 from akerouanton/fix-deprecation-message-servicespec-networks 2023-11-21 14:24:15 +01:00
noderunner.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
nodes.go Plumb context through info endpoint 2023-11-10 20:09:25 +00:00
secrets.go Plumb context through info endpoint 2023-11-10 20:09:25 +00:00
services.go daemon/cluster: Cluster.imageWithDigestString: include mirrors to resolve digest 2024-01-04 16:53:45 +01:00
swarm.go api/types: move ContainerCreateConfig, ContainerRmConfig to api/types/backend 2023-12-05 16:41:36 +01:00
tasks.go Bump swarmkit to v2 2022-04-21 17:33:07 -04:00
utils.go daemon/cluster: format code with gofumpt 2023-06-29 00:26:32 +02:00
volumes.go volumes: fix error-handling when removing volumes with swarm enabled 2023-03-13 19:17:35 +01:00