-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images created by pack have a created timestamp of 40 years ago #931
Comments
Hi @simon0191 , thanks for the report! This is a feature, not a bug. We purposefully set the creation time of all layers to a standard date, in order to ensure that builds are repeatable. In simpler terms, we want to ensure that the application is the exact same, if the inputs (the builder, stacks and application) are the same, and in order to do that, we zero out the date (which makes it seem like it's 40 years old). This is discussed a bit more here: #130 (comment)
|
This is also in our docs here: https://buildpacks.io/docs/reference/reproducibility/#consequences-and-caveats. |
Hi Dfreilich, It is strange you call it a feature. You could still recalculate the creation date easily if that would be your problem. |
Just FYI, planned changes to pack (#1281) would allow the image create time to be configurable. |
Summary
I created 2 images with pack. When I ran
docker images
it says that both images were created 40 years agoReproduction
pack build test_image:test_1 --path . --builder heroku/buildpacks:18 --buildpack heroku/nodejs --buildpack heroku/ruby
docker images
Current behavior
Expected behavior
Environment
pack info
docker info
The text was updated successfully, but these errors were encountered: