Configure ACR retention policies#
Use a retention policy to cleanup untagged manifests.
Retention policy is a configurable option of Premium Azure Container Registry (ACR). When a retention policy is configured, untagged manifests in the registry are automatically deleted. A manifest is untagged when a more recent image is pushed using the same tag. i.e. latest.
The retention policy (in days) can be set to 0-365. The default is 7 days.
Consider enabling a retention policy for untagged manifests.
Retention policies for Azure Container Registry is currently in preview.
- Scalable storage
- Set a retention policy for untagged manifests
- Lock a container image in an Azure container registry