acr-cli icon indicating copy to clipboard operation
acr-cli copied to clipboard

Number 999999 in the --ago key - causes the deletion of all images

Open foxmeyson opened this issue 3 years ago • 0 comments

Describe the bug when executing the command: acr purge --registry $REGISTRY --filter '$REPOSITORY:.*' --ago 999999d --untagged all images of the specified repository are deleted

To Reproduce Steps to reproduce the behavior:

  1. login in registry: acr login -r $REGISTRY.azurecr.io -u $USER -p $PASSWORD
  2. execute command: acr purge --registry $REGISTRY --filter '$REPOSITORY:.*' --ago 999999d --untagged

Expected behavior when executing the command: acr purge --registry $REGISTRY --filter '$REPOSITORY:.*' --ago 999999d --untagged waited for all untagged image manifests to be deleted, no time limit. For example, if you execute the same command, but with the key:
--ago 99999d - everything works correctly

Screenshots

Any relevant environment information

  • OS: Linux
  • Version: Ubuntu 20.04

Additional context Suggesting to the documentation page: https://docs.microsoft.com/ru-ru/azure/container-registry/container-registry-auto-purge make this feature

foxmeyson avatar Aug 09 '21 20:08 foxmeyson