Azure Container Apps not pulling latest image

Greg H 25 Reputation points
2024-01-13T00:13:19.82+00:00

I am having some trouble with Azure Container Service not pulling my latest docker image. I am deploying through azure bicep and have the container registry and credentials setup correctly. It is referencing a specific version of a container image. E.g. myrepo.azureacr.io/myimage:2.8. I periodically push new versions of this container but it does not seem to pull the latest version no matter what I do. I have tried redeploying the bicep template which should force a new revision to be created. I have also created a new revision manually. It seems like new revisions do not initiate a container pull. Is this how this is supposed to work? If so how do I get it the service to initiate a pull in the event the underlying container image changes. Thanks.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
483 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
527 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vinodh247 27,791 Reputation points MVP
    2024-01-14T05:28:50.56+00:00

    Hi Greg H: Glad to know that you were able to figure this out and thanks for sharing the rootcause. By the way, Microsoft Q&A community has a policy that "The question author cannot accept their own answer, They can only accept answers by others.". Hence request you to accept this as answer so we can close this thread. I am summarizing the issue and root cause you have found for it.

    OP faced an issue where the images pulled from the Azure container service were not latest, upon investigation he had found that the fault was with docker build not with the Azure container service.


1 additional answer

Sort by: Most helpful
  1. Vinodh247 27,791 Reputation points MVP
    2024-01-14T00:39:32.1866667+00:00

    hi Greg H Thanks for reaching out to Microsoft Q&A.

    It is referencing a specific version of a container image. E.g. myrepo.azureacr.io/myimage:2.8. I periodically push new versions of this container but it does not seem to pull the latest version no matter what I do.

    are you using the tag that would pull the latest image that you need? what do you get in tags once the image is pulled?

    az acr repository show-tags

    https://stackoverflow.com/a/59098288

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.