Container Registry repositories - az acr repository

Manage repositories for Azure container registries.

Commands

az acr repository delete Deletes a repository or a manifest/tag from the given repository in the specified container registry.
az acr repository list Lists repositories in the specified container registry.
az acr repository show-manifests Shows manifests of a given repository in the specified container registry.
az acr repository show-tags Shows tags of a given repository in the specified container registry.

az acr repository delete

Deletes a repository or a manifest/tag from the given repository in the specified container registry.

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

Examples

Delete a repository from the specified container registry.

az acr repository delete -n MyRegistry --repository MyRepository

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

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

Delete the manifest referenced by a tag. This operation also deletes 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 the given repository. This operation also deletes 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=.

--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=.

--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

Lists repositories in the specified 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=.

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=.

--username -u

The username used to log into a container registry.

az acr repository show-manifests

Shows manifests of a given repository in the specified container registry.

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

Examples

Show manifests of a given repository in a given 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=.

--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=.

--username -u

The username used to log into a container registry.

az acr repository show-tags

Shows tags of a given repository in the specified container registry.

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

Examples

Show tags of a given repository in a given 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=.

--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=.

--username -u

The username used to log into a container registry.