Represents credentials used to access a Docker registry.

Constructors

Properties

Methods

  • Internal

    Determines if this credential is relevant to the input usage.

    Parameters

    Returns boolean

  • Internal

    Creates and returns the credential configuration, to be used by cdk-assets to support the docker-credential-cdk-assets tool for docker login.

    Returns DockerCredentialCredentialSource

  • Grant read-only access to the registry credentials. This grants read access to any secrets, and pull access to any repositories.

    Parameters

    Returns void

  • Creates a DockerCredential for DockerHub. Convenience method for customRegistry('https://index.docker.io/v1/', opts).

    Parameters

    Returns DockerCredential

  • Creates a DockerCredential for one or more ECR repositories.

    NOTE - All ECR repositories in the same account and region share a domain name (e.g., 0123456789012.dkr.ecr.eu-west-1.amazonaws.com), and can only have one associated set of credentials (and DockerCredential). Attempting to associate one set of credentials with one ECR repo and another with another ECR repo in the same account and region will result in failures when using these credentials in the pipeline.

    Parameters

    Returns DockerCredential