pub struct BuildOptsBuilder { /* private fields */ }

Implementations

Set the name of the docker file. defaults to DockerFile.

Tag this image with a name after building it.

Extra hosts to add to /etc/hosts.

Suppress verbose build output.

Don’t use the image cache when building image.

Attempt to pull the image even if an older image exists locally.

Set memory limit for build.

Total memory (memory + swap). Set as -1 to disable swap.

CPU shares (relative weight).

CPUs in which to allow execution (eg. 0-3, 0,1)

The length of a CPU period in microseconds.

Microseconds of CPU time that the container can get in a CPU period.

Size of /dev/shm in bytes. The size must be greater than 0. If omitted the system uses 64MB.

Squash the resulting images layers into a single layer. (Experimental release only.)

bridge, host, none, container:<name|id>`, or a custom network name.

Platform in the format os[/arch[/variant]].

Target build stage.

BuildKit output configuration.

Add labels to this image.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more