dockerTools.buildLayeredImage: fix created=now

This commit is contained in:
Jos van Bakel
2020-07-09 09:34:18 +02:00
parent 0dbc88331f
commit 66737168a4
3 changed files with 23 additions and 4 deletions
+10
View File
@@ -354,4 +354,14 @@ rec {
Env = [ "USER=root" ];
};
};
# 20. Ensure that setting created to now results in a date which
# isn't the epoch + 1 for layered images.
unstableDateLayered = pkgs.dockerTools.buildLayeredImage {
name = "unstable-date-layered";
tag = "latest";
contents = [ pkgs.coreutils ];
created = "now";
};
}