acr

Unable to pull new image with AKS and ACR

吃可爱长大的小学妹 提交于 2021-01-27 19:10:27
问题 I'm suddenly having issues pulling the latest image from Azure container registry with AKS (which previously worked fine. If I run kubectl describe pod <podid> I get: Failed to pull image <image>: rpc error: code = Unknown desc = Error response from daemon: Get <image>: unauthorized: authentication required I've tried logging into the ACR manually and it's all working correctly - the new images have pushed correctly and I can pull them manually. Moreover I've tried: az aks update -g

Getting the latest image tag from ACR Repository

不羁岁月 提交于 2020-01-22 02:47:05
问题 I need to fetch the latest image tag from Azure Container Registry (ACR) with a bash command in my pipeline and use that tag for container deployment. Here is what I could find with Azure cli: $ az acr repository show-tags --name myacr --repository myrepo --top 1 However this returns me the oldest tag. How can I get the latest pushed tag from ACR repo? 回答1: See this doc: az acr repository show-tags and its parameters description: Order the items in the results. Default to alphabetical order