git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #115651 from bhipple/doc/dockertools-cleanup
7ff22cbBenjamin Hipple
doc/builders/images/dockertools.section.md+14−14
@@ -38,15 +38,15 @@ The above example will build a Docker image `redis/latest` from the given base i
38
38
39- `name` specifies the name of the resulting image. This is the only required argument for `buildImage`.
39- `name` specifies the name of the resulting image. This is the only required argument for `buildImage`.
40
40
41−- `tag` specifies the tag of the resulting image. By default it\'s `null`, which indicates that the nix output hash will be used as tag.
41+- `tag` specifies the tag of the resulting image. By default it's `null`, which indicates that the nix output hash will be used as tag.
42
42
43−- `fromImage` is the repository tarball containing the base image. It must be a valid Docker image, such as exported by `docker save`. By default it\'s `null`, which can be seen as equivalent to `FROM scratch` of a `Dockerfile`.
43+- `fromImage` is the repository tarball containing the base image. It must be a valid Docker image, such as exported by `docker save`. By default it's `null`, which can be seen as equivalent to `FROM scratch` of a `Dockerfile`.
44
44
45−- `fromImageName` can be used to further specify the base image within the repository, in case it contains multiple images. By default it\'s `null`, in which case `buildImage` will peek the first image available in the repository.
45+- `fromImageName` can be used to further specify the base image within the repository, in case it contains multiple images. By default it's `null`, in which case `buildImage` will peek the first image available in the repository.
46
46
47−- `fromImageTag` can be used to further specify the tag of the base image within the repository, in case an image contains multiple tags. By default it\'s `null`, in which case `buildImage` will peek the first tag available for the base image.
47+- `fromImageTag` can be used to further specify the tag of the base image within the repository, in case an image contains multiple tags. By default it's `null`, in which case `buildImage` will peek the first tag available for the base image.
48
48
49−- `contents` is a derivation that will be copied in the new layer of the resulting image. This can be similarly seen as `ADD contents/ /` in a `Dockerfile`. By default it\'s `null`.
49+- `contents` is a derivation that will be copied in the new layer of the resulting image. This can be similarly seen as `ADD contents/ /` in a `Dockerfile`. By default it's `null`.
50
50
51- `runAsRoot` is a bash script that will run as root in an environment that overlays the existing layers of the base image with the new resulting layer, including the previously copied `contents` derivation. This can be similarly seen as `RUN ...` in a `Dockerfile`.
51- `runAsRoot` is a bash script that will run as root in an environment that overlays the existing layers of the base image with the new resulting layer, including the previously copied `contents` derivation. This can be similarly seen as `RUN ...` in a `Dockerfile`.
52
52
@@ -109,7 +109,7 @@ Create a Docker image with many of the store paths being on their own layer to i
109
109
110: Tag of the generated image.
110: Tag of the generated image.
111
111
112− *Default:* the output path\'s hash
112+ *Default:* the output path's hash
113
113
114`contents` _optional_
114`contents` _optional_
115
115
@@ -139,7 +139,7 @@ Create a Docker image with many of the store paths being on their own layer to i
139
139
140`extraCommands` _optional_
140`extraCommands` _optional_
141
141
142−: 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.
142+: 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.
143
143
144### Behavior of `contents` in the final image {#dockerTools-buildLayeredImage-arg-contents}
144### Behavior of `contents` in the final image {#dockerTools-buildLayeredImage-arg-contents}
145
145
@@ -183,9 +183,9 @@ Modern Docker installations support up to 128 layers, however older versions sup
183
183
184If the produced image will not be extended by other Docker builds, it is safe to set `maxLayers` to `128`. However it will be impossible to extend the image further.
184If the produced image will not be extended by other Docker builds, it is safe to set `maxLayers` to `128`. However it will be impossible to extend the image further.
185
185
186−The first (`maxLayers-2`) most \"popular\" paths will have their own individual layers, then layer \#`maxLayers-1` will contain all the remaining \"unpopular\" paths, and finally layer \#`maxLayers` will contain the Image configuration.
186+The first (`maxLayers-2`) most "popular" paths will have their own individual layers, then layer \#`maxLayers-1` will contain all the remaining "unpopular" paths, and finally layer \#`maxLayers` will contain the Image configuration.
187
187
188−Docker\'s Layers are not inherently ordered, they are content-addressable and are not explicitly layered until they are composed in to an Image.
188+Docker's Layers are not inherently ordered, they are content-addressable and are not explicitly layered until they are composed in to an Image.
189
189
190## streamLayeredImage {#ssec-pkgs-dockerTools-streamLayeredImage}
190## streamLayeredImage {#ssec-pkgs-dockerTools-streamLayeredImage}
191
191
@@ -226,15 +226,15 @@ pullImage {
226
226
227- `imageDigest` specifies the digest of the image to be downloaded. This argument is required.
227- `imageDigest` specifies the digest of the image to be downloaded. This argument is required.
228
228
229−- `finalImageName`, if specified, this is the name of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it\'s equal to `imageName`.
229+- `finalImageName`, if specified, this is the name of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's equal to `imageName`.
230
230
231−- `finalImageTag`, if specified, this is the tag of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it\'s `latest`.
231+- `finalImageTag`, if specified, this is the tag of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's `latest`.
232
232
233- `sha256` is the checksum of the whole fetched image. This argument is required.
233- `sha256` is the checksum of the whole fetched image. This argument is required.
234
234
235−- `os`, if specified, is the operating system of the fetched image. By default it\'s `linux`.
235+- `os`, if specified, is the operating system of the fetched image. By default it's `linux`.
236
236
237−- `arch`, if specified, is the cpu architecture of the fetched image. By default it\'s `x86_64`.
237+- `arch`, if specified, is the cpu architecture of the fetched image. By default it's `x86_64`.
238
238
239`nix-prefetch-docker` command can be used to get required image parameters:
239`nix-prefetch-docker` command can be used to get required image parameters:
240
240
@@ -278,7 +278,7 @@ The `name` argument is the name of the derivation output, which defaults to `fro
278
278
279## shadowSetup {#ssec-pkgs-dockerTools-shadowSetup}
279## shadowSetup {#ssec-pkgs-dockerTools-shadowSetup}
280
280
281−This constant string is a helper for setting up the base files for managing users and groups, only if such files don\'t exist already. It is suitable for being used in a [`buildImage` `runAsRoot`](#ex-dockerTools-buildImage-runAsRoot) script for cases like in the example below:
281+This constant string is a helper for setting up the base files for managing users and groups, only if such files don't exist already. It is suitable for being used in a [`buildImage` `runAsRoot`](#ex-dockerTools-buildImage-runAsRoot) script for cases like in the example below:
282
282
283```nix
283```nix
284buildImage {
284buildImage {