diff --git a/pkg/util/image_util.go b/pkg/util/image_util.go index 8c2c30141..991a54e5f 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 }