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:
When trying to pull a busybox image from my container registry I'm met with an error as follows:
However if I setup my Cache Rule as follows:
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.
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:
When trying to pull a busybox image from my container registry I'm met with an error as follows:
However if I setup my Cache Rule as follows: 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