Merge pull request #115857 from lbpdt/feature/docker-tools-layered-base-image

dockerTools.buildLayeredImage: support fromImage
This commit is contained in:
Benjamin Hipple
2021-03-23 18:15:34 -04:00
committed by GitHub
5 changed files with 213 additions and 31 deletions

View File

@@ -111,6 +111,12 @@ Create a Docker image with many of the store paths being on their own layer to i
*Default:* the output path's hash
`fromImage` _optional_
: The repository tarball containing the base image. It must be a valid Docker image, such as one exported by `docker save`.
*Default:* `null`, which can be seen as equivalent to `FROM scratch` of a `Dockerfile`.
`contents` _optional_
: Top level paths in the container. Either a single derivation, or a list of derivations.