Azure container registry is not storing tagged images

Dan Petitt 20 Reputation points
2024-08-16T13:18:30.1833333+00:00

I am having big problems trying to push tagged images to the Azure Container Registry.

The repository gets created, and manifests uploaded but no tagged image exists.

I have tried pushing existing images to Azure CR from Github Actions, all succeeds but only manifests exist, not tags.

I have tried manual docker commands, docker buildx, docker build actions. None work.

So I followed the article below exactly and that doesnt work either. No tagged images in azure and i cant pull or run it as it says image not found:

https://video2.skills-academy.com/en-us/azure/container-registry/container-registry-quickstart-task-cli#build-and-push-image-from-a-dockerfile

User's image

User's image

User's image

Is this just totally broken or something? What am I doing wrong here?

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

Accepted answer
  1. Nikhil Duserla 2,025 Reputation points Microsoft Vendor
    2024-08-19T05:19:15.1733333+00:00

    Hi Dan Petitt,

    As an original poster cannot accept their own answer, I am reposting it so that you can accept it an answer. Accepted answer will help other community members navigate to the appropriate solutions.

    Issue: Azure container registry is not storing tagged images

    Solution:

    Dan Petitt has confirmed the below solution fixed problem

    I followed exactly the steps in the tutorial and it did not work.

    That includes building and tagging, following the instructions and then pushing.

    I tried docker commands, acr commands.

    However, I eventually found the issue; it was being "Quarantined". This only came to light after eventually trying many different things like trying to get the manifest and finally got a response message saying it was being quarantined; this is not clear there is nothing on the Azure UI to turn this on or off, nor see what is being quarantined ... very poor.

    Anyway, I ran the modify policy command line and then any new images suddenly appeared: https://github.com/Azure/acr/blob/main/docs/preview/quarantine/readme.md#configure-quarantine-on-a-registry

     

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sina Salam 10,036 Reputation points
    2024-08-16T19:30:51.1033333+00:00

    Hello Dan Petitt,

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

    I understand that you are having an issue where your images are being uploaded to Azure Container Registry (ACR) but are not properly tagged, resulting in the manifests being present but no tagged images available.

    First things you will need to do is to verify the tagging and naming using Azure CLI. After you provide your login details try this command:

    docker tag my-image:latest <your-acr-name>.azurecr.io/my-repo:my-tag
    

    This will help to know that the image you are building is properly tagged before pushing it to ACR.

    Secondly, you will try to manually push images to Azure Container Registry (ACR) using the Azure CLI. https://docs.microsoft.com/en-us/azure/container-registry/container-registry-quickstart-task-cli#build-and-push-image-from-a-dockerfile After pushing, manually check the ACR using Azure CLI or the Azure Portal:

    az acr repository show --name <your-acr-name> --repository my-repo
    az acr repository show-tags --name <your-acr-name> --repository my-repo
    

    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


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.