Skip to content

DockerCacheOption

Options for configuring the Docker cache backend.

Initializer

using AlibabaCloud.SDK.ROS.CDK.Assembly.Schema;
new DockerCacheOption {
    string Type,
    System.Collections.Generic.IDictionary<string, string> Params = null
};

Properties

Name Type Description
Type string The type of cache to use.
Params System.Collections.Generic.IDictionary Any parameters to pass into the docker cache backend configuration.

TypeRequired

public string Type { get; set; }
  • Type: string
  • Default: unspecified

The type of cache to use.

Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.


Example

"registry";

ParamsOptional

public System.Collections.Generic.IDictionary<string, string> Params { get; set; }
  • Type: System.Collections.Generic.IDictionary
  • Default: {} No options provided

Any parameters to pass into the docker cache backend configuration.

Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.