Container registry storage usage#
Cost Optimization · Container Registry · Rule · 2020_12 · Important
Regularly remove deprecated and unneeded images to reduce storage usage.
Description#
Each ACR SKU has an amount of included storage. When the amount of included storage is exceeded, additional storage costs per GiB are accrued.
It is good practice to regularly clean-up orphaned (or dangling) images. These images are a result of pushing updated images with the same tag.
Recommendation#
Consider removing deprecated and unneeded images to reduce storage consumption. Also consider upgrading to the Premium SKU for Basic or Standard registries to increase included storage.
Notes#
This rule applies when analyzing resources deployed (in-flight) to Azure.
Links#
- CO:07 Component costs
- Azure Container Registry service tiers
- Scalable storage
- Manage registry size
- Delete container images in Azure Container Registry using the Azure CLI