Skip to content

Commit

Permalink
az-acr: add page (#10912)
Browse files Browse the repository at this point in the history
* Adding an az-acr commands lists

* Removing white spaces and heading formating

* Removing whitespaces

* Adding a new line in end of the file

* Removing unnecessary lines

* Update pages/common/az-acr.md

Co-authored-by: K.B.Dharun Krishna <[email protected]>

---------

Co-authored-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
BS14 and kbdharun authored Oct 11, 2023
1 parent 4b8f18a commit 05ef9b0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pages/common/az-acr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# az acr

> Manage private registries with Azure Container Registries.
> More information: <https://learn.microsoft.com/en-us/cli/azure/acr>.
- Create a managed container registry:

`az acr create --name {{registry_name}} --resource-group {{resource_group}} --sku {{sku}}`

- Login to a registry:

`az acr login --name {{registry_name}}`

- Tag a local image for ACR:

`docker tag {{image_name}} {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}`

- Push an image to a registry:

`docker push {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}`

- Pull an image from a registry:

`docker pull {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}`

- Delete an image from a registry:

`az acr repository delete --name {{registry_name}} --repository {{image_name}}:{{tag}}`

- Delete a managed container registry:

`az acr delete --name {{registry_name}} --resource-group {{resource_group}} --yes`

- List images within a registry:

`az acr repository list --name {{registry_name}} --output table`

0 comments on commit 05ef9b0

Please sign in to comment.