diff options
author | Christian Kemper <christian.kemper@me.com> | 2022-11-21 12:10:07 +0000 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-12-08 20:29:09 +0100 |
commit | f6ae4479ea712a7f478a4e0dce92bd06b6f75370 (patch) | |
tree | d4d1f0772797e9126daf51aea47c5d39d55fd040 /doc | |
parent | f21f11aa2a02cb78651c6d57546c7d7541f9240c (diff) |
dockerTools: allowing architecture to be specified
... for buildImage, buildLayeredImage and streamLayeredImage, adding docs and tests.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/builders/images/dockertools.section.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/builders/images/dockertools.section.md b/doc/builders/images/dockertools.section.md index 6203b3786bfa4..dfc012b80c5a7 100644 --- a/doc/builders/images/dockertools.section.md +++ b/doc/builders/images/dockertools.section.md @@ -62,6 +62,8 @@ The above example will build a Docker image `redis/latest` from the given base i - `config` is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions). +- `architecture` is _optional_ and used to specify the image architecture, this is useful for multi-architecture builds that don't need cross compiling. If not specified it will default to `hostPlatform`. + - `diskSize` is used to specify the disk size of the VM used to build the image in megabytes. By default it's 1024 MiB. - `buildVMMemorySize` is used to specify the memory size of the VM to build the image in megabytes. By default it's 512 MiB. @@ -141,6 +143,8 @@ Create a Docker image with many of the store paths being on their own layer to i `config` _optional_ +`architecture` is _optional_ and used to specify the image architecture, this is useful for multi-architecture builds that don't need cross compiling. If not specified it will default to `hostPlatform`. + : Run-time configuration of the container. A full list of the options are available at in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions). *Default:* `{}` |