-
Notifications
You must be signed in to change notification settings - Fork 117
Allow wildcards in exclude list #8
Comments
Sounds like a great idea! Even better perhaps with regex support which can do OR and allow more flexibility. Christmas present pull requests are most welcome, and grep can support regex I'd guess :) We've been wanting this as well so might implement it next year otherwise. Happy holidays! |
The new KEEP_CONTAINERS parameter option uses a list of regexes to specify images of containers to keep. Perhaps the KEEP_IMAGES parameter could be converted to a list of regexes as well. This could be backwards compatible and could utilize the same =~ bash regex operator as KEEP_CONTAINERS now use. @sshipway Any chance you could help out with a pull request that implements =~ comparisons for the KEEP_IMAGES parameter? |
I'm a bit pressured at the moment in getting our production cluster up and running :( |
This is implemented by #20 |
It would be very helpful if KEEP_IMAGES could take wildcards, or if specifying a container without a tag implied ALL tags. IE:
steve/foo : Keep steve/foo:latest, steve/foo:v1, steve/foo:v2 etc (same as steve/foo:* )
steve/* : Keep steve/foo:latest, steve/bar:v1, etc (same as steve/: )
steve/foo:latest : Only keep steve/foo:latest
steve/*:latest : Keep latest versions of all steve containers; steve/foo:latest, steve/bar:latest, etc
Doing this would allow us to clean up only unused container that are not in-house created, or all versions of one particular container.
The text was updated successfully, but these errors were encountered: