Azure / azure-cli

Azure Command-Line Interface
MIT License
3.92k stars 2.89k forks source link

Azure Container Registry - Cache Rule docker library endpoint #29153

Open pareion opened 1 month ago

pareion commented 1 month ago

Describe the bug

If you setup a Cache Rule with the source being docker.io you must use the library as part of your source name if it's possible.

Example: If I wanna setup a cache rule for pulling the busy box image from docker hub I would setup up in the following way: billede

When trying to pull a busybox image from my container registry I'm met with an error as follows: billede

However if I setup my Cache Rule as follows: billede I can fetch images through the rule as expected.

Both scenarios are suppose to work and not only the latter.

Example fetching the images through docker works both with library as part of the pull and without. docker pull docker.io/busybox:1.35.0 docker pull docker.io/library/busybox:1.35.0

Related command

Using Bicep to deploy it, but either.

az acr cache create or az acr cache update

Errors

Error added in Describe the Bug field.

Issue script & Debug output

No output because creating or updating the rule works.

Expected behavior

Expecting the Cache Rule to fetch the image instead of an error.

Environment Summary

azure-cli 2.61.0

core 2.61.0 telemetry 1.1.0

Extensions: account 0.2.5 aks-preview 0.5.170 azure-devops 0.26.0 costmanagement 0.2.1 k8s-configuration 1.7.0 k8s-extension 1.5.2 quota 0.1.0 resource-graph 2.1.0

Dependencies: msal 1.28.0 azure-mgmt-resource 23.1.1

Additional context

No response

yonzhan commented 1 month ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @toddysm, @luisdlp, @northtyphoon.