diff --git a/pkg/util/image_util.go b/pkg/util/image_util.go index d0db22321..0a5aa67cd 100644 --- a/pkg/util/image_util.go +++ b/pkg/util/image_util.go @@ -142,7 +142,7 @@ func cachedImage(opts *config.KanikoOptions, image string) (v1.Image, error) { if d, ok := ref.(name.Digest); ok { cacheKey = d.DigestStr() } else { - img, err := remote.Image(ref) + img, err := remoteImage(image, opts) if err != nil { return nil, err }