Failed to pull image: rpc error: code = Unknown desc = failed to pull and unpack image. dial tcp: lookup read: connection refused

Goncalo Oliveira 1 Reputation point
2022-08-30T13:30:10.023+00:00

I've suddenly started having errors when pulling images from a private container repository. At first I thought the credentials maybe expired, but even after updating the secret and verifying the serviceaccount configuration, I still got the errors.

So I tried to deploy something from a public repository (alpine from Docker Hub) just to see if the issue was exactly the private repository and the problem is exactly the same.

Failed to pull image "alpine": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/alpine:latest": failed to resolve reference "docker.io/library/alpine:latest": failed to do request: Head "https://registry-1.docker.io/v2/library/alpine/manifests/latest": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:52580->[::1]:53: read: connection refused  
Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bjoern Peters 8,921 Reputation points
    2022-08-30T13:32:06.84+00:00

    Maybe this one?!

    There is an issue affecting DNS now.
    https://status.azure.com/en-us/status for more information - could be related.

    0 comments No comments

  2. Nadav Ben Haim 501 Reputation points Microsoft Employee
    2022-08-30T13:42:09.46+00:00

    There is an issue affecting DNS in AKS at the moment.
    Working through resolving this.

    0 comments No comments

  3. KarishmaTiwari-MSFT 20,772 Reputation points Microsoft Employee Moderator
    2022-09-07T18:23:37.983+00:00

    @Goncalo Oliveira If you are still seeing this issue, please let me know in the comment.

    There was an Azure outage on Aug 30th that might have caused this issue. It is mitigated.
    You can find details of the outage here.

    238710-image.png

    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.