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 build [OPTIONS] PATH | URL | -.
Build an image from a Dockerfile
- 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["DockerImageBuildSettings"]
class Type type-node
Syntax
public sealed class DockerImageBuildSettings : 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-host
Add a custom host-to-IP mapping (host:ip)
|
BuildArg | string[] |
--build-arg
Set build-time variables
|
CacheFrom | string[] |
--cache-from
default:
Images to consider as cache sources
|
CgroupParent | string |
--cgroup-parent
Optional parent cgroup for the container
|
Compress | Nullable |
--compress
default: false
Compress the build context using gzip
|
CpuPeriod | Nullable |
--cpu-period
default: 0
Limit the CPU CFS (Completely Fair Scheduler) period
|
CpuQuota | Nullable |
--cpu-quota
default: 0
Limit the CPU CFS (Completely Fair Scheduler) quota
|
CpusetCpus | string |
--cpuset-cpus
CPUs in which to allow execution (0-3, 0,1)
|
CpusetMems | string |
--cpuset-mems
MEMs in which to allow execution (0-3, 0,1)
|
CpuShares | Nullable |
--cpu-shares, -c
default: 0
CPU shares (relative weight)
|
DisableContentTrust | Nullable |
--disable-content-trust
default: true
Skip image verification
|
File | string |
--file, -f
Name of the Dockerfile (Default is 'PATH/Dockerfile')
|
ForceRm | Nullable |
--force-rm
default: false
Always remove intermediate containers
|
Iidfile | string |
--iidfile
Write the image ID to the file
|
Isolation | string |
--isolation
Container isolation technology
|
Label | string[] |
--label
Set metadata for an image
|
Memory | string |
--memory, -m
Memory limit
|
MemorySwap | string |
--memory-swap
Swap limit equal to memory plus swap: '-1' to enable unlimited swap
|
Network | string |
--network
default: default
Set the networking mode for the RUN instructions during build
|
NoCache | Nullable |
--no-cache
default: false
Do not use cache when building the image
|
Platform | string |
--platform
Set platform if server is multi-platform capable
|
Progress | string |
Set type of progress output ("auto", "plain", "tty"). Use plain to show container output (default "auto")
|
Pull | Nullable |
--pull
default: false
Always attempt to pull a newer version of the image
|
Quiet | Nullable |
--quiet, -q
default: false
Suppress the build output and print image ID on success
|
Rm | Nullable |
--rm
default: true
Remove intermediate containers after a successful build
|
SecurityOpt | string[] |
--security-opt
default:
Security options
|
ShmSize | string |
--shm-size
Size of /dev/shm
|
Squash | Nullable |
--squash
default: false
Squash newly built layers into a single new layer
|
Stream | Nullable |
--stream
default: false
Stream attaches to server to negotiate build context
|
Tag | string[] |
--tag, -t
Name and optionally a tag in the 'name:tag' format
|
Target | string |
--target
Set the target build stage to build.
|
Ulimit | string[] |
--ulimit
Ulimit options
|
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 |
Throws an exception if the specified parameter's value is null.
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 |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|