Skip to content

Commit

Permalink
Fix containerd fails to pull OCI image with non-http(s):// urls
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
  • Loading branch information
ktock committed Nov 12, 2021
1 parent d418660 commit 526defb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions remotes/docker/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 526defb

Please sign in to comment.