summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2021-04-07 15:02:24 +0200
committerGitHub <noreply@github.com>2021-04-07 15:02:24 +0200
commit58b21dea7812f5334e3b3c37bfc003e057d5f215 (patch)
tree8c2d399006fadfc49e6262a347e6020ef3ad443f /doc
parent3660d282acaf1e00aecdb38fa9a4d848f599b8ba (diff)
parent63e7c4186f43190ca4ee44aeec10f81343573861 (diff)
Merge pull request #116749 from vroad/docker-layered-image-fakeroot
dockerTools.streamLayeredImage: add fakeRootCommands option
Diffstat (limited to 'doc')
-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 23662f9bbfe45..2d21eb1c2e07e 100644
--- a/doc/builders/images/dockertools.section.md
+++ b/doc/builders/images/dockertools.section.md
@@ -147,6 +147,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, changing fakeroot's state instead of the real filesystem. The latter would require privileges that the build user does not have. Static binaries do not interact with the fakeroot environment. 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.