diff --git a/pkg/executor/build.go b/pkg/executor/build.go index 73b2f0df23..e8080fd5f5 100644 --- a/pkg/executor/build.go +++ b/pkg/executor/build.go @@ -113,7 +113,11 @@ func newStageBuilder(args *dockerfile.BuildArgs, opts *config.KanikoOptions, sta l := snapshot.NewLayeredMap(hasher) snapshotter := snapshot.NewSnapshotter(l, config.RootDir) - digest, err := sourceImage.Digest() + sourceImageNoTimestamps, err := mutate.CreatedAt(sourceImage, v1.Time{}) + if err != nil { + return nil, err + } + digest, err := sourceImageNoTimestamps.Digest() if err != nil { return nil, err }