3
0
Fork 0
forked from mirrors/nixpkgs

dockerTools.streamLayeredImage: document fakeRootCommands

This commit is contained in:
vroad 2021-03-19 11:54:13 +09:00
parent 057c7a2d58
commit 2dce2253bc

View file

@ -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.