How to pull image from existing azure container registry?
Asked Answered
S

1

8

Created a docker image. Deployed the app as web service; create a registry and push the image to azure container and the app is running fine online. I tried to login but cant. Username or password incorrect. On top of that my laptop crashed and I did not save a copy.

Can someone help me on how to pull the image from acr with the source code and download to my local machine. I found some tutorial online but was a bit vague.

Please help

Sudden answered 10/10, 2022 at 19:14 Comment(1)
What have you tried? What hasn't worked? There's tons of documentation on how to authenticate and pull images from ACR. Until you provide some context about any specific issues you're encountering, the best recommendation anyone can give is "look at the documentation"Uther
A
21
  1. Login to your Azure account
az login
  1. Login to Azure Container Registry
az acr login --name $REGISTRY
  1. Pull your Image
docker pull ${REGISTRY}.azurecr.io/${IMAGE}:${TAG}

Optionnal: List your images

az acr repository list -n $REGISTRY --output table
Allstar answered 10/10, 2022 at 20:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.