dcloud ecr repositories createCreate a repository
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
--nameRequiredstring
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]+)*)*$/
--descriptionOptionalstring
Free text shown with the repository, up to 256 characters; none when omitted
Constraints: max 256 chars
--visibilityOptionalenum
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-mutabilityOptionalenum
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-exclusionsOptionalarray 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-bytesOptionalnumber
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.
--tagsOptionalmap 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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.