Skip to content

prune: allow negative and prefix filters#2473

Merged
tonistiigi merged 1 commit intodocker:masterfrom
tonistiigi:prune-negative-filter
May 28, 2024
Merged

prune: allow negative and prefix filters#2473
tonistiigi merged 1 commit intodocker:masterfrom
tonistiigi:prune-negative-filter

Conversation

@tonistiigi
Copy link
Member

This allows negative prune filters, eg. docker buildx prune --filter 'type!=exec.cachemount'

The patch slightly abuses how the docker/api/types/filters package can't understand these separators but alternative would have been to create another package that is a mix of Docker and Containerd filter style.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants