moby--moby/distribution
Brian Goff 495d623ae5 Add fallback for pull by tag
Some registries seem to be non-conformant and return a not found error
when pulling by digest (which docker now does all the time).
To work around this, fallback when all of the following are true:

1. Image reference is a tag
2. Tag->digest resolution succeeds
3. Fetch by resolved digest fails with a "not found" error.

This is intentionally not caching the manifests to reduce complexity for
this edge case.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2020-12-04 23:50:52 +00:00
..
fixtures/validate_manifest
metadata bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
utils
xfer distribution/xfer: use "main" instead of "master" for progress channel 2020-07-14 10:48:30 +02:00
config.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00
errors.go Add fallback for pull by tag 2020-12-04 23:50:52 +00:00
errors_test.go goimports: fix imports 2019-09-18 12:56:54 +02:00
manifest.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00
manifest_test.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00
pull.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00
pull_v2.go Add fallback for pull by tag 2020-12-04 23:50:52 +00:00
pull_v2_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
pull_v2_unix.go
pull_v2_windows.go Use hcsshim osversion package for Windows versions 2019-10-22 02:53:00 +02:00
push.go Remove v1 manifest code 2019-06-18 01:40:25 +00:00
push_v2.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00
push_v2_test.go distribution: SA4021: x = append(y) is equivalent to x = y (staticcheck) 2019-10-18 00:45:31 +02:00
registry.go Fix base.Dial is deprecated: Use DialContext instead 2019-09-20 10:42:13 +08:00
registry_unit_test.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00