Image creation time inconsistent between builds #2352
Labels
area/behavior
all bugs related to kaniko behavior like running in as root
feature/reproducible-digest
kind/bug
Something isn't working
ok-to-close?
possible-dupe
priority/p0
Highest priority. Break user flow. We are actively looking at delivering it.
Actual behavior
Currently running a kaniko build for the same Dockerfile twice (with caching enabled) returns a docker image with different value of
Created
in the manifest, even when nothing is changed. Using the--reproducible
flag does not solve this, since that unsets this field, and we want to have the field.Expected behavior
If all layers are exactly the same as the cache, the
Created
time of the destination Docker image is unchanged.To Reproduce
Steps to reproduce the behavior:
docker pull <registry>/<image>@sha256:<digest>
Created
field usingdocker inspect <registry>/<image>@sha256:<digest> | jq -r '.[0].Created'
Additional Information
Kaniko Image (fully qualified with digest)
gcr.io/kaniko-project/executor@sha256:ac169723b2076f9d5804f4bc05c98397e286da6fdcdd5a09fdc179f06ccb3be1
Kaniko output during first build
Created
of first buildCreated
of second buildTriage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: