Complete the code to create an Azure Container Registry with the Azure CLI.
az acr create --resource-group myResourceGroup --name myRegistry [1] --sku BasicThe --location parameter specifies the Azure region where the registry will be created. Here, westus is used as the location.
Complete the code to log in to your Azure Container Registry using the Azure CLI.
az acr [1] --name myRegistrypush instead of login.The az acr login command logs you into the Azure Container Registry so you can push or pull container images.
Fix the error in the command to push a Docker image to your Azure Container Registry.
docker [1] myRegistry.azurecr.io/myapp:v1pull instead of push.run which executes containers, not uploads images.The docker push command uploads your local image to the registry. Using push here is correct.
Fill both blanks to create a repository in Azure Container Registry and tag a local image correctly.
docker [1] myapp:latest myRegistry.azurecr.io/myapp:[2]
push instead of tag for labeling images.The docker tag command tags a local image with the registry name and version. Here, v1 is the tag version.
Fill all three blanks to write a command that lists repositories in your Azure Container Registry.
az acr repository [1] --name myRegistry --output [2] --query [3]
delete instead of list.The command az acr repository list lists repositories. The output format table shows a readable table, and the query [].name extracts repository names.