DockerSdk
the .NET SDK for Docker
Public Attributes | Properties | List of all members
DockerSdk.Builders.BuildOptions Class Reference

Specifies how to build an image. More...

Public Attributes

Dictionary< string, string > Labels = new()
 Gets a collection of the labels to apply to the image. More...
 

Properties

IEnumerable< ImageName > Tags = Array.Empty<ImageName>() [get, set]
 Gets or sets a collection of tags (names) to apply to the image when it has been created. More...
 
string? TargetBuildStage [get, set]
 Gets or sets which build stage to run. More...
 
bool UseBuildCache = true [get, set]
 Gets or sets a value indicating whether the daemon should use its build cache when building the image. The default is true. More...
 

Detailed Description

Specifies how to build an image.

Member Data Documentation

◆ Labels

Dictionary<string, string> DockerSdk.Builders.BuildOptions.Labels = new()

Gets a collection of the labels to apply to the image.

Property Documentation

◆ Tags

IEnumerable<ImageName> DockerSdk.Builders.BuildOptions.Tags = Array.Empty<ImageName>()
getset

Gets or sets a collection of tags (names) to apply to the image when it has been created.

◆ TargetBuildStage

string? DockerSdk.Builders.BuildOptions.TargetBuildStage
getset

Gets or sets which build stage to run.

◆ UseBuildCache

bool DockerSdk.Builders.BuildOptions.UseBuildCache = true
getset

Gets or sets a value indicating whether the daemon should use its build cache when building the image. The default is true.

Disabling the build cache makes builds slower. Typically you would only disable it for troubleshooting purposes.


The documentation for this class was generated from the following file: