Container Registry shows image was published 20 years ago


Note: This issue has been addressed, but due to technical constraints, it was only feasible to implement the fix in the latest version of the container registry, which is now backed by a metadata database (context). As of today (2024-05-10), this improvement, along with several others, including fixes and new features, is exclusively available on GitLab.com and self-managed instances running this updated version. For instructions on how to upgrade, please refer to this link.


Summary

I'll go ahead and close this issue. Will add a note to the description to make the above clear. cc @trizzi.

Container Registry shows wrong creation date when created by kaniko --reproducible

Steps to reproduce

Example Project

https://gitlab.com/lukaw3d/try-container-registry

What is the current bug behavior?

What is the expected correct behavior?

Display correct publish date

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

https://github.com/GoogleContainerTools/kaniko#--reproducible

Possible fixes

Use different source of time if image doesn't contain timestamp.

https://github.com/GoogleContainerTools/kaniko#--reproducible

--reproducible
Set this flag to strip timestamps out of the built image and make it reproducible.
Edited by João Pereira