From 7799f4695b71829971694a5cfad54afefe5a87be Mon Sep 17 00:00:00 2001 From: WxNzEMof <143541718+WxNzEMof@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:41:07 +0000 Subject: [PATCH] Document the new streamLayeredImage parameters --- doc/build-helpers/images/dockertools.section.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/build-helpers/images/dockertools.section.md b/doc/build-helpers/images/dockertools.section.md index a1d1f2cb2012..001d5695290e 100644 --- a/doc/build-helpers/images/dockertools.section.md +++ b/doc/build-helpers/images/dockertools.section.md @@ -507,6 +507,16 @@ This allows the function to produce reproducible images. _Default value:_ `"1970-01-01T00:00:01Z"`. +`uid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-uid} +`gid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-gid} +`uname` (String; _optional_) []{#dockerTools-buildLayeredImage-arg-uname} +`gname` (String; _optional_) []{#dockerTools-buildLayeredImage-arg-gname} + +: Credentials for Nix store ownership. + Can be overridden to e.g. `1000` / `1000` / `"user"` / `"user"` to enable building a container where Nix can be used as an unprivileged user in single-user mode. + + _Default value:_ `0` / `0` / `"root"` / `"root"` + `maxLayers` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-maxLayers} : The maximum number of layers that will be used by the generated image.