In Container Registry sometimes Image disappears.

2024-08-13T13:55:54.99+00:00

Sometimes I am unable to see prod Image in container registry, There are no errors in logs after successful execution, after rebuild the application images appears and everything works fine.
How I should troubleshoot this problem, please help me to resolve the same.

Attaching below screenshot after Image disappeared.

Untitled design

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
450 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sina Salam 10,261 Reputation points
    2024-08-13T15:52:27.51+00:00

    Hello Louise Fahys (Sharepoint Consultant),

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that image disappear in your ACR, and there are no errors in logs after successful execution, after rebuilding the application images appears and everything works fine.

    Many ACR issues and image missing can be related to networking, others could be permissions, identity management, and any other factors. I will encourage you to always use Azure CLI to check the health of your ACR and reproduce the issue first by running docker pull <image-name>. Also, if the image is really missing delete the container instance and retry your deployment. Kindly review the links below to troubleshoot your ACR:

    NOTE: If you come across error 404, try to check an appropriate topic among the links.

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam


  2. Akshay kumar Mandha 390 Reputation points Microsoft Vendor
    2024-08-26T11:32:50.87+00:00

    Hi Louise Fahys (Sharepoint Consultant)

    Thank you for getting back to us.

    We understand how critical it is to address issues with images unexpectedly disappearing from your Azure Container Registry. It could be due to a few different issues. I could suggest one possibility is that lifecycle policies are set up to automatically delete images after a certain period or if they're untagged. Please refer below documentation

    Information about how to configure and manage lifecycle policies that might affect image retention. Azure Container Registry Retention Policies

    And Also, misconfigurations in deployment scripts or CI/CD pipelines can cause images to be removed or replaced unexpectedly. Hitting storage limits in the registry or experiencing replication issues could also lead to images not being visible or available. Additionally, network problems might affect image availability, and in rare cases, data corruption or manual deletions could be the culprit. Investigating these areas should help in identifying the root cause of the problem.

    If it was helpful, please click "Upvote" on the post let us know. If you have any additional questions or need further assistance, feel free to reach out.

    Thank You

    User's image

    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.