mirror of
https://github.com/moby/moby.git
synced 2026-07-12 10:35:14 +00:00
Unlike the equivalent for pulling images, [Service.LookupPushEndpoints] never returns mirror endpoints, as it calls [Service.lookupV2Endpoints] with "includeMirrors=false", so we should not use this field, and unconditionally handle errors without the additional fallbacks that we consider for pulling images from a mirror. [Service.LookupPushEndpoints]:cea56c1d9c/registry/service.go (L134-L139)[Service.lookupV2Endpoints]:cea56c1d9c/registry/service_v2.go (L10-L40)Signed-off-by: Sebastiaan van Stijn <github@gone.nl>