Docker: Difference between revisions
imported>Vater m there is a lot of content in several articles |
imported>Asymmetric Add section on reproducible image creation dates |
||
Line 31: | Line 31: | ||
Also check out the excellent article by lethalman about [http://lethalman.blogspot.de/2016/04/cheap-docker-images-with-nix_15.html building minimal docker images with nix]. | Also check out the excellent article by lethalman about [http://lethalman.blogspot.de/2016/04/cheap-docker-images-with-nix_15.html building minimal docker images with nix]. | ||
=== Reproducible image dates === | |||
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 = 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 == |