Azure / acr-cli

Command Line Tool for interacting with Azure Container Registry Images
MIT License
54 stars 38 forks source link

Purging with --untagged option broke all the tagged images #342

Closed CezaryKlus closed 2 months ago

CezaryKlus commented 2 months ago

Describe the bug Building images with docker buildx --platform linux/amd64 and pushing to ACR then purging with --untagged breaks every such an image in the ACR and results in manifest unknown upon docker pull

To Reproduce Steps to reproduce the behavior:

  1. Build images with docker buildx --platform linux/amd64
  2. Push to ACR
  3. Schedule a purge with e.g. mcr.microsoft.com/acr/acr-cli:0.5 purge --ago 0d --filter 'x:x' --untagged
  4. Execute docker pull on the image
  5. Observe an error: Pulling from... not found: manifest unknown: manifest sha256:... is not found

Expected behavior purge with --untagged does not break tagged images.

Additional context

131

CezaryKlus commented 2 months ago

It seems like using mcr.microsoft.com/acr/acr-cli:0.11 solves the issue. I will reopen this bug if the buggy behavior is observed again.