Pushing custome images to Azure ACR fails " Use of closed network connection "

ghilas kasmi 41 Reputation points

While learning how to use Azure Container Registry with the official tutorial : https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal?tabs=azure-cli

I tried to push images to my registry, the Hello World image in the course works fine, but when i try to use my own images it fails. It also fails when i pull images from docker and try to push them to my Azure registry.


Of course, the images are correctly tagged and the CLI connection works fine. I checked the health of the service and it's OK, when i go to check the logs there is litterally no logs.

i'm also following another Azure course in which i build the image with Github actions ( https://learn.microsoft.com/en-us/azure/aks/kubernetes-action ), it also works great on the repo of this course, but once i try with my own projects, it fails. This time the error is about the url / the credentials :


After investigations, i'm sure that the credentials are correct, but the URL is maybe false because it never create it. That's why i was trying to push it manually in the first place.

EDIT : I managed to make it work by changing the wifi source i used, but i still don't understand how is this possible, why it doesn't work on github actions and what should i change in my conf to make it work with the original wifi again

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

Accepted answer
  1. srbhatta-MSFT 8,481 Reputation points Microsoft Employee

    Hello @ghilas kasmi ,
    I see your update that post modifying the wifi source you were able to push your custom image to ACR.
    There is a long running thread existing which deals with the same issue. Did you get a chance to check issue#367?

    Do let me know. I will wait to hear from you so that we can check this further. Thank you.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 12,826 Reputation points MVP

    Hi @ghilas kasmi

    Thanks for reaching Q & A forum.

    Re-validate all the steps from the below url
    closed network connection

    If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.