dcloud ecr repositories create

Create a repository

IAM ecr:CreateRepositoryChanges state

Public repositories serve anonymous pulls for their own images only; private is the default and is what a push creates.

Synopsis

dcloud ecr repositories create --name name [flags]

Flags

  • --nameRequired

    string

    Repository name, unique in the organization: 2–255 characters of lowercase path components joined by / (team/api), each letters and digits joined by . _ __ or -. blobs, manifests, tags, referrers and uploads may not be a component. A taken name is refused with 409

    Constraints: 2-255 chars, /^[a-z0-9]+(?:(?:\.|_|__|-+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:\.|_|__|-+)[a-z0-9]+)*)*$/

  • --descriptionOptional

    string

    Free text shown with the repository, up to 256 characters; none when omitted

    Constraints: max 256 chars

  • --visibilityOptional

    enum

    private: every pull needs a credential with ecr:PullImage. public: anyone can pull this repository’s images without credentials (read-only, and only the layers its own images reference). private when omitted

    One of: private, public

  • --tag-mutabilityOptional

    enum

    immutable: a push that would move an existing tag to a different image is refused (re-pushing the same image is fine; deleting the tag is still allowed). mutable when omitted

    One of: mutable, immutable

  • --tag-mutability-exclusionsOptional

    array of string

    Up to 10 tag patterns (letters, digits, _ . - and * as a glob, 1–128 characters) that stay mutable in an immutable repository, e.g. ["latest", "main-*"]; none when omitted

    Constraints: 1-128 chars, /^[A-Za-z0-9_.*-]+$/

  • --storage-quota-bytesOptional

    number

    Cap in bytes on every layer this repository holds, shared ones included: 1 MiB (1048576) to 1 PiB. null: no repository cap (the organization quota still applies). A push over it is refused; lowering it deletes nothing. No cap when omitted

    Constraints: integer, 1048576-1125899906842624

    May be null.

  • --tagsOptional

    map of string

    Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).

    Constraints: key=value

Example

dcloud ecr repositories create --name example

Generated from the API description, the same one the API checks requests against and the CLI is built from.