acr-cli
acr-cli copied to clipboard
Number 999999 in the --ago key - causes the deletion of all images
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:
- login in registry: acr login -r $REGISTRY.azurecr.io -u $USER -p $PASSWORD
- 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