Skip to content

DockerBuildSecret

Methods to build Docker CLI arguments for builds using secrets.

Docker BuildKit must be enabled to use build secrets.

https://docs.docker.com/build/buildkit/

Initializers

using AlibabaCloud.SDK.ROS.CDK.Core;
new DockerBuildSecret();
Name Type Description

Static Functions

Name Description
FromSrc A Docker build secret from a file source.

FromSrc

using AlibabaCloud.SDK.ROS.CDK.Core;
DockerBuildSecret.FromSrc(string Src);

A Docker build secret from a file source.

SrcRequired

  • Type: string

The path to the source file, relative to the build directory.