Skip to content

DockerCacheOption

Options for configuring the Docker cache backend.

Initializer

import com.aliyun.ros.cdk.core.DockerCacheOption;
DockerCacheOption.builder()
    .type(java.lang.String)
//  .params(java.util.Map<java.lang.String, java.lang.String>)
    .build();

Properties

Name Type Description
type java.lang.String The type of cache to use.
params java.util.Map Any parameters to pass into the docker cache backend configuration.

typeRequired

public java.lang.String getType();
  • Type: java.lang.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 java.util.Map<java.lang.String, java.lang.String> getParams();
  • Type: java.util.Map
  • 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.