Jump to content

Docker: Difference between revisions

53 bytes removed ,  27 December 2022
m
no edit summary
imported>Jooooscha
No edit summary
imported>Jooooscha
mNo edit summary
Line 32: Line 32:
The manual advises against using <code>created = "now"</code>, as that prevents images from being reproducible.
The manual advises against using <code>created = "now"</code>, as that prevents images from being reproducible.


An [https://christine.website/blog/nix-flakes-2-2022-02-27 alternative], if using flakes, is to do <code>created = builtins.substring 0 8 self.lastModifiedDate</code>, which uses the commit date, and is therefore reproducible.
An alternative, if using [[flakes]], is to do <code>created = builtins.substring 0 8 self.lastModifiedDate</code>, which uses the commit date, and is therefore reproducible.


== How to calculate the <code>sha256</code> of a pulled image ==
== How to calculate the <code>sha256</code> of a pulled image ==
Anonymous user