Interface: BuildImageOptions
Properties
abortController?
optionalabortController:AbortController
The abort controller for running the build image operation
Source
packages/extension-api/src/extension-api.d.ts:2887
buildargs?
optionalbuildargs:Object
JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the
buildargs as the environment context for commands run via the Dockerfile RUN instruction, or for variable
expansion in other Dockerfilev instructions. This is not meant for passing secret values.
For example, the build arg FOO=bar would become {"FOO":"bar"} in JSON. This would result in the query
parameter buildargs={"FOO":"bar"}. Note that {"FOO":"bar"} should be URI component encoded.
Index signature
[key: string]: string
Source
packages/extension-api/src/extension-api.d.ts:2971
cachefrom?
optionalcachefrom:string
JSON array of images used for build cache resolution.
Source
packages/extension-api/src/extension-api.d.ts:2913
containerFile?
optionalcontainerFile:string
Specifies a Containerfile which contains instructions for building the image
Source
packages/extension-api/src/extension-api.d.ts:2867
cpuperiod?
optionalcpuperiod:number
The length of a CPU period in microseconds.
Source
packages/extension-api/src/extension-api.d.ts:2957
cpuquota?
optionalcpuquota:number
Microseconds of CPU time that the container can get in a CPU period.
Source
packages/extension-api/src/extension-api.d.ts:2962
cpusetcpus?
optionalcpusetcpus:number
CPUs in which to allow execution (e.g., 0-3, 0,1).
Source
packages/extension-api/src/extension-api.d.ts:2952
cpushares?
optionalcpushares:number
CPU shares (relative weight).
Source
packages/extension-api/src/extension-api.d.ts:2947
extrahosts?
optionalextrahosts:string
Extra hosts to add to /etc/hosts
Source
packages/extension-api/src/extension-api.d.ts:2892
forcerm?
optionalforcerm:boolean
Default: false
Always remove intermediate containers, even upon failure.
Source
packages/extension-api/src/extension-api.d.ts:2932
labels?
optionallabels:Object
Arbitrary key/value labels to set on the image, as a JSON map of string pairs.
Index signature
[key: string]: string
Source
packages/extension-api/src/extension-api.d.ts:2986
memory?
optionalmemory:number
Set memory limit for build.
Source
packages/extension-api/src/extension-api.d.ts:2937
memswap?
optionalmemswap:number
Total memory (memory + swap). Set as -1 to disable swap.
Source
packages/extension-api/src/extension-api.d.ts:2942
networkmode?
optionalnetworkmode:string
Sets the networking mode for the run commands during build. Supported standard values are: bridge,
host, none, and container:<name|id>. Any other value is taken as a custom network's name or ID
to which this container should connect to.
Source
packages/extension-api/src/extension-api.d.ts:2993
nocache?
optionalnocache:boolean
Default: false
Do not use the cache when building the image.
Source
packages/extension-api/src/extension-api.d.ts:3014
outputs?
optionaloutputs:string
Default: ""
BuildKit output configuration
Source
packages/extension-api/src/extension-api.d.ts:3007
platform?
optionalplatform:string
Set the os/arch of the built image (and its base image, when using one) to the provided value instead of using the current operating system and architecture of the host
Source
packages/extension-api/src/extension-api.d.ts:2877
provider?
optionalprovider:ContainerProviderConnection
Set the provider to use, if not we will try select the first one available (sorted in favor of Podman)
Source
packages/extension-api/src/extension-api.d.ts:2882
pull?
optionalpull:string
Attempt to pull the image even if an older image exists locally.
Source
packages/extension-api/src/extension-api.d.ts:2918
q?
optionalq:boolean
Default: false
Suppress verbose build output.
Source
packages/extension-api/src/extension-api.d.ts:2908
remote?
optionalremote:string
A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball.
Source
packages/extension-api/src/extension-api.d.ts:2901