-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When I run acr purge --filter <target> --ago 1d --untagged --dry-run --registry <myRegistry>
it's saying it will delete manifests which are tagged?
To Reproduce
Steps to reproduce the behavior:
- Have a container repository with at least 1x Tag and Multiple Manifests underneath.
- In PowerShell, add these two variables:
$registry = "YourRegHere"
and$repo = "YourRepoHere"
- Run
az acr repository show-manifests --name $registry --repository $repo --output json | ConvertFrom-Json | Select-Object digest, tags
- Review the output - In my case there is one tagged manifest and 30+ without tags.
- Run
acr purge --filter $repo --ago 1d --untagged -dry-run --registry $registry
- Review the output - Note how the hash is in the dry run to be deleted!
Expected behavior
The name says --untagged so I expect it to only remove untagged manifests...
Screenshots
List of all manifests:
List of manifests being deleted (note how the tagged one is in there)
Any relevant environment information
- OS: Windows
- Version: 0.16, Revision: 2913fa4
Additional context
Also curious to know why these commands aren't part of the usual az
suite? Seems a bit weird that it's a completely different executable.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working