mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
when cannot get remote manifest in checking registry, that is just a sign that it does not exist there
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
860163a9c7
commit
bb9a80c80a
3
src/cmd/linuxkit/cache/write.go
vendored
3
src/cmd/linuxkit/cache/write.go
vendored
@ -375,7 +375,8 @@ func (p *Provider) ImageInRegistry(ref *reference.Spec, trustedRef, architecture
|
|||||||
|
|
||||||
desc, err := remote.Get(remoteRef, remoteOptions...)
|
desc, err := remote.Get(remoteRef, remoteOptions...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, fmt.Errorf("error getting manifest for image %s: %v", image, err)
|
log.Debugf("Retrieving image %s returned an error, ignoring: %v", image, err)
|
||||||
|
return false, nil
|
||||||
}
|
}
|
||||||
// first attempt as an index
|
// first attempt as an index
|
||||||
ii, err := desc.ImageIndex()
|
ii, err := desc.ImageIndex()
|
||||||
|
Loading…
Reference in New Issue
Block a user