Open Rishabh-Patel-git opened 4 days ago
Hi, Same issue i am facing in my project when running the pipeline which untags the older images, the retention policy is working on the manifests of docker pushed images however podman pushed images are untouched , this needs to be fixed quickly. @alloy
Describe the bug The retention policy in ACR behaves inconsistently between images pushed with Docker and Podman. After untagging images, the untagged manifests are removed for Docker, but not for Podman.
To Reproduce Steps to reproduce the behavior:
You can check from Log Analytics as well; in the case of Docker, the manifest should be purged instantly, whereas for Podman, it is not.
Expected behavior Both Docker and Podman pushed images should have their untagged manifests removed when the retention policy is applied.
Any relevant environment information Azure CLI: 2.63.0 Docker version: 23.0.1 Podman version: 3.4.4
Additional context The difference between the manifests can be found using the following command:
az acr manifest list-metadata --registry "$acrName" --name "$repository"
For Podman, it shows: "mediaType": "application/vnd.oci.image.manifest.v1+json" For Docker, it shows: "mediaType": "application/vnd.docker.distribution.manifest.v2+json"
Furthermore, when the retention policy is set for a longer duration, the expiration time is shown for images pushed with Docker, but no expiration time is displayed for images pushed with Podman.