Skip to content

Commit ce16bc1

Browse files
committed
remove the duplicate image tag suffix in log
Signed-off-by: wrfly <[email protected]>
1 parent d553d60 commit ce16bc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apis/server/image_bridge.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ func (s *Server) pullImage(ctx context.Context, rw http.ResponseWriter, req *htt
4848
}
4949
// Error information has be sent to client, so no need call resp.Write
5050
if err := s.ImageMgr.PullImage(ctx, image, &authConfig, rw); err != nil {
51+
if strings.Contains(image, ":") {
52+
image = strings.Split(image, ":")[0]
53+
}
5154
logrus.Errorf("failed to pull image %s:%s: %v", image, tag, err)
5255
return nil
5356
}

0 commit comments

Comments
 (0)