dotnet / docker-tools

This is a repo to house some common tools for our various docker repos.
MIT License
124 stars 46 forks source link

Auth error when pulling cached image #1424

Closed mthalman closed 2 months ago

mthalman commented 2 months ago

There's a build in buildtools-prereqs (internal link) that is failing with an unauthorized error when attempting to pull an image from the ACR. This scenario occurs when the build ends up building an image that takes a long time (in this case 3+ hrs) and then attempting to pull an image from the ACR due to a cache hit.

We probably need to change the logic so that it calls IRegistryCredentialsProvider.ExecuteWithCredentialsAsync for each Dockerfile that is processed rather than once for the whole batch.

dotnet-issue-labeler[bot] commented 2 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 2 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.