Windows Agent Pool not able to pull images

Vivek Somani 0 Reputation points
2023-06-01T17:06:49.2566667+00:00

Getting the following error -

Failed to pull image "..." [rpc error: code = Unknown desc = failed to pull and unpack image "": failed to extract layer sha256:10...: failed to safefile.openRelative failed in Win32: open \?\C:\ProgramData\containerd\root\io.containerd.snapshotter.v1.windows\snapshots\160\var\lib\dpkg\info\gcc-8-base:amd64.list: path contains invalid character ':' (0x1f) var\lib\dpkg\info\gcc-8-base:amd64.list: unknown, rpc errpr: code = unknown desc = failed to pull and unpack image "": failed to resolve reference "": failed to authorize: failed to fetch anonymous token: unexpected status : 401 Unauthorized]

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
448 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,081 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Cristian Gatjens 716 Reputation points Microsoft Employee
    2023-06-01T17:57:57.1766667+00:00

    Hello @Vivek Somani

    Thanks for reaching out and I hope you are doing well.

    Are you able to succesfully pull images from another ACR? Do other images from the same ACR work?

    401 Unauthorized error message can be troubleshooted with the following link:

    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/cannot-pull-image-from-acr-to-aks-cluster#cause-1-401-unauthorized-error

    Are you able to locally pull the image using for example "docker pull" command?

    Thanks!


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.