Skip to content

Commit

Permalink
fix: add pull log (#2063)
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail authored Nov 20, 2024
1 parent 6b9a5c3 commit 594e260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/sources/image_containerd_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func (c *containerdImageCliImpl) ImagePull(image string, username, password stri
var img containerd.Image
img, err = c.client.Pull(pctx, reference, opts...)
if err != nil {
logrus.Infof("pull image failure, try http")
hostOpt.DefaultScheme = "http"
options := docker.ResolverOptions{
Tracker: Tracker,
Expand All @@ -159,7 +160,7 @@ func (c *containerdImageCliImpl) ImagePull(image string, username, password stri
containerd.WithPlatformMatcher(platformMC),
containerd.WithResolver(docker.NewResolver(options)),
}
c.client.Pull(pctx, reference, opts...)
img, err = c.client.Pull(pctx, reference, opts...)
}
stopProgress()
if err != nil {
Expand Down

0 comments on commit 594e260

Please sign in to comment.