Azure Container issue pulling images on restart

Michael Huneycutt 25 Reputation points
2024-07-03T11:04:25.0466667+00:00

In the last 24 hours I have started getting the following error message and cannot restart my containers because of this error. There is no other information to go on and this is happening in more that on Azure Account and multiple subscriptions. Nothing has changed it just started reporting this error on restart.

Failed to restart the container group 'xxxx-prod001-app'. Error: An error response is received from the docker registry 'index.docker.io'. Please retry later.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
465 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
712 questions
0 comments No comments
{count} votes

Accepted answer
  1. akinbade abiola 18,720 Reputation points
    2024-07-03T12:08:29.53+00:00

    Hello Michael Huneycutt,

    Thanks for your question

    Please see thread here for similar issue with same error:

    https://github.com/datalust/seq-tickets/discussions/2223

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


1 additional answer

Sort by: Most helpful
  1. Michael Huneycutt 25 Reputation points
    2024-07-03T19:08:54.7633333+00:00

    I found the issue and the fix. I leverage caddy sidecar image. The container was created with

    image: caddy:latest

    This pulls from the docker registry not my azure container registry. With the changes made by docker on 6/30/2024, the pull from the docker registry was failing.

    The solution was to pull caddy from docker registry and then stage and push the image to my azure container registry and update the container definition to pull from my azure container registry instead of docker. Basically changing the reference

    image: [myacr].azurecr.io/caddy:latest

    That solved it.

    1 person found this answer helpful.

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.