Skip to content

Commit 5fde9a5

Browse files
authored
Merge pull request #6238 from ktock/urls-fallback-1.5
[release/1.5] Fix containerd fails to pull OCI image with non-`http(s)://` urls
2 parents c34181f + 01428ec commit 5fde9a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

remotes/docker/fetcher.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ func (r dockerFetcher) Fetch(ctx context.Context, desc ocispec.Descriptor) (io.R
6060
log.G(ctx).WithError(err).Debug("failed to parse")
6161
continue
6262
}
63+
if u.Scheme != "http" && u.Scheme != "https" {
64+
log.G(ctx).Debug("non-http(s) alternative url is unsupported")
65+
continue
66+
}
6367
log.G(ctx).Debug("trying alternative url")
6468

6569
// Try this first, parse it

0 commit comments

Comments
 (0)