Fix containerd fails to pull OCI image with non-http(s)://
urls
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
parent
d418660889
commit
526defb571
@ -59,6 +59,10 @@ func (r dockerFetcher) Fetch(ctx context.Context, desc ocispec.Descriptor) (io.R
|
|||||||
log.G(ctx).WithError(err).Debug("failed to parse")
|
log.G(ctx).WithError(err).Debug("failed to parse")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if u.Scheme != "http" && u.Scheme != "https" {
|
||||||
|
log.G(ctx).Debug("non-http(s) alternative url is unsupported")
|
||||||
|
continue
|
||||||
|
}
|
||||||
log.G(ctx).Debug("trying alternative url")
|
log.G(ctx).Debug("trying alternative url")
|
||||||
|
|
||||||
// Try this first, parse it
|
// Try this first, parse it
|
||||||
|
Loading…
Reference in New Issue
Block a user