az acr repository

Manage repositories for Azure Container Registries.

Commands

az acr repository delete Delete a repository, manifest, or tag in a container registry.
az acr repository list List repositories in a container registry.
az acr repository show-manifests Show manifests of a repository in a container registry.
az acr repository show-tags Show tags for a repository in a container registry.

az acr repository delete

Delete a repository, manifest, or tag in a container registry.

az acr repository delete --name
--repository
[--manifest]
[--password]
[--resource-group]
[--tag]
[--username]
[--yes]

Examples

Delete a repository from a container registry.

az acr repository delete -n MyRegistry --repository MyRepository

Delete a tag from a repository. This does not delete the manifest referenced by the tag or any associated layer data.

az acr repository delete -n MyRegistry --repository MyRepository --tag MyTag

Delete the manifest referenced by a tag. This also deletes any associated layer data and all other tags referencing the manifest.

az acr repository delete -n MyRegistry --repository MyRepository --tag MyTag --manifest

Delete a manfiest from a repository. This also deletes any associated layer data and all tags referencing the manifest.

az acr repository delete -n MyRegistry --repository MyRepository --manifest MyManifest

Required Parameters

--name -n
The name of the container registry. You can configure the default registry name using `az configure --defaults acr=<registry name>`.
--repository
The name of repository to delete.

Optional Parameters

--manifest
The sha256 based digest of manifest to delete.
--password -p
The password used to log into a container registry.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--tag
The name of tag to delete.
--username -u
The username used to log into a container registry.
--yes -y
Do not prompt for confirmation.

az acr repository list

List repositories in a container registry.

az acr repository list --name
[--password]
[--resource-group]
[--username]

Examples

List repositories in a given container registry.

az acr repository list -n MyRegistry

Required Parameters

--name -n
The name of the container registry. You can configure the default registry name using `az configure --defaults acr=<registry name>`.

Optional Parameters

--password -p
The password used to log into a container registry.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--username -u
The username used to log into a container registry.

az acr repository show-manifests

Show manifests of a repository in a container registry.

az acr repository show-manifests --name
--repository
[--password]
[--resource-group]
[--username]

Examples

Show manifests of a repository in a container registry.

az acr repository show-manifests -n MyRegistry --repository MyRepository

Required Parameters

--name -n
The name of the container registry. You can configure the default registry name using `az configure --defaults acr=<registry name>`.
--repository
The repository to obtain manifests from.

Optional Parameters

--password -p
The password used to log into a container registry.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--username -u
The username used to log into a container registry.

az acr repository show-tags

Show tags for a repository in a container registry.

az acr repository show-tags --name
--repository
[--password]
[--resource-group]
[--username]

Examples

Show tags of a repository in a container registry.

az acr repository show-tags -n MyRegistry --repository MyRepository

Required Parameters

--name -n
The name of the container registry. You can configure the default registry name using `az configure --defaults acr=<registry name>`.
--repository
The repository to obtain tags from.

Optional Parameters

--password -p
The password used to log into a container registry.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--username -u
The username used to log into a container registry.