summary refs log tree commit diff
path: root/doc/builders
diff options
context:
space:
mode:
authorvroad <396351+vroad@users.noreply.github.com>2021-03-19 11:54:13 +0900
committervroad <396351+vroad@users.noreply.github.com>2021-03-19 11:54:13 +0900
commit2dce2253bcf4b1b7eacd823783d1abedb857234f (patch)
tree4bfcc0bf6727d11c4de29289817fad24e4a18df4 /doc/builders
parent057c7a2d58d28fc63c733728a591d7ecd30755ca (diff)
downloadnixpkgs-2dce2253bcf4b1b7eacd823783d1abedb857234f.tar
nixpkgs-2dce2253bcf4b1b7eacd823783d1abedb857234f.tar.gz
nixpkgs-2dce2253bcf4b1b7eacd823783d1abedb857234f.tar.bz2
nixpkgs-2dce2253bcf4b1b7eacd823783d1abedb857234f.tar.lz
nixpkgs-2dce2253bcf4b1b7eacd823783d1abedb857234f.tar.xz
nixpkgs-2dce2253bcf4b1b7eacd823783d1abedb857234f.tar.zst
nixpkgs-2dce2253bcf4b1b7eacd823783d1abedb857234f.zip
dockerTools.streamLayeredImage: document fakeRootCommands
Diffstat (limited to 'doc/builders')
-rw-r--r--doc/builders/images/dockertools.section.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/builders/images/dockertools.section.md b/doc/builders/images/dockertools.section.md
index 40d4dba1b85..99b901e9b86 100644
--- a/doc/builders/images/dockertools.section.md
+++ b/doc/builders/images/dockertools.section.md
@@ -141,6 +141,10 @@ Create a Docker image with many of the store paths being on their own layer to i
 
 : Shell commands to run while building the final layer, without access to most of the layer contents. Changes to this layer are "on top" of all the other layers, so can create additional directories and files.
 
+`fakeRootCommands` _optional_
+
+: Shell commands to run while creating the archive for the final layer in a fakeroot environment. Unlike `extraCommands`, you can run chown to change the owners of the files in the archive, without actually persisting the change to the filesystem. By default all files in the archive will be owned by root.
+
 ### Behavior of `contents` in the final image {#dockerTools-buildLayeredImage-arg-contents}
 
 Each path directly listed in `contents` will have a symlink in the root of the image.