diff --git a/remotes/docker/fetcher.go b/remotes/docker/fetcher.go index 62098d227..2e2a893a0 100644 --- a/remotes/docker/fetcher.go +++ b/remotes/docker/fetcher.go @@ -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") 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") // Try this first, parse it