1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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
utils
xfer
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
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
pull_v2_unix.go
pull_v2_windows.go
push.go
push_v2.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00
push_v2_test.go
registry.go
registry_unit_test.go Store image manifests in containerd content store 2020-11-05 20:02:18 +00:00