This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Docker.
Summary
Settings for docker buildx build.
- Assembly
- Cake
.Docker .dll - Namespace
- Cake
.Docker - Base Types
-
- ToolSettings
- AutoToolSettings
graph BT
Type-->Base0["AutoToolSettings"]
click Base0 "/api/Cake.Docker/AutoToolSettings"
Base0-->Base1["ToolSettings"]
Type["DockerBuildXBuildSettings"]
class Type type-node
Syntax
public sealed class DockerBuildXBuildSettings : AutoToolSettings
Constructors
Name | Summary |
---|---|
Docker |
Fields
Name | Constant Value | Summary |
---|---|---|
SecretProperties |
Values of these properties shouldn't be displayed in the output.
Inherited from AutoToolSettings
|
Properties
Name | Value | Summary |
---|---|---|
AddHost | string[] |
Add a custom host-to-IP mapping (format: "host:ip")
|
Allow | string[] |
Allow extra privileged entitlement (e.g., "network.host", "security.insecure")
|
BuildArg | string[] |
Set build-time variables
|
BuildContext | string[] |
Additional build contexts (e.g., name=path)
|
Builder | string |
Override the configured builder instance
|
CacheFrom | string[] |
External cache sources (e.g., "user/app:cache", "type=local,src=path/to/dir")
|
CacheTo | string[] |
Cache export destinations (e.g., "user/app:cache", "type=local,dest=path/to/dir")
|
CgroupParent | string |
Optional parent cgroup for the container
|
Compress | Nullable |
Compress the build context using gzip
|
CpuPeriod | Nullable |
Limit the CPU CFS (Completely Fair Scheduler) period
|
CpuQuota | Nullable |
Limit the CPU CFS (Completely Fair Scheduler) quota
|
CpusetCpus | string |
CPUs in which to allow execution (0-3, 0,1)
|
CpusetMems | string |
MEMs in which to allow execution (0-3, 0,1)
|
CpuShares | Nullable |
CPU shares (relative weight)
|
DisableContentTrust | Nullable |
Skip image verification
|
File | string |
Name of the Dockerfile (default: "PATH/Dockerfile")
|
ForceRm | Nullable |
Always remove intermediate containers
|
Iidfile | string |
Write the image ID to the file
|
Isolation | string |
Container isolation technology
|
Label | string[] |
Set metadata for an image
|
Load | bool |
Shorthand for "--output=type=docker"
|
Memory | string |
Memory limit
|
MemorySwap | string |
Swap limit equal to memory plus swap: '-1' to enable unlimited swap
|
MetadataFile | string |
Write build result metadata to the file
|
Network | string |
Set the networking mode for the "RUN" instructions during build (default "default")
|
NoCache | bool |
Do not use cache when building the image
|
NoCacheFilter | string[] |
Do not cache specified stages
|
Output | string[] |
Output destination (format: "type=local,dest=path")
|
Platform | string[] |
Set target platform for build
|
Progress | string |
Set type of progress output ("auto", "plain", "tty"). Use plain to show container output (default "auto")
|
Pull | bool |
Always attempt to pull all referenced images
|
Push | bool |
Shorthand for "--output=type=registry"
|
Quiet | bool |
Suppress the build output and print image ID on success
|
Rm | Nullable |
Remove intermediate containers after a successful build
|
Secret | string[] |
Secret to expose to the build (format: "id=mysecret[,src=/local/secret]")
|
SecurityOpt | string[] |
Security options
|
ShmSize | string |
Size of "/dev/shm"
|
Squash | Nullable |
Squash newly built layers into a single new layer
|
Ssh | string[] |
SSH agent socket or keys to expose to the build (format: "default|<id>[=<socket>|<key>[,<key>]]")
|
Tag | string[] |
Name and optionally a tag (format: "name:tag")
|
Target | string |
Set the target build stage to build.
|
Ulimit | string[] |
Ulimit options (default [])
|
Methods
Name | Value | Summary |
---|---|---|
Collect |
string[] |
Collects secret properties.
Inherited from AutoToolSettings
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|