Details
-
Type:
Bug
-
Status: New
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Cleanup, Documentation
Description
In NEXUS-18067 , support for creating a Cleanup Policy which can delete via a regular expression was added.
On this page:
https://help.sonatype.com/repomanager3/cleanup-policies
we should add some example regular expressions for cleaning up docker images.
I did some trial and error, and found that if I have an docker image
with a name of mycompany/my-image and tag 3.0.0.0-f79983f-dev then I can create cleanup policy with Asset Name Matcher this regexp:
v2/mycompany/my-image/manifests/.-dev*
I also was able to use regexp's like this:
v2/mycompany/my-image/manifests/([4-9]|[a-f])([4-9]|[a-f])([4-9]|[a-f])([4-9]|[a-f])([4-9]|[a-f])([4-9]|[a-f])([4-9]|[a-f])
v2/mycompany/my-image/manifests/([0-9]|[a-f])([0-9]|[a-f])*
blah
Attachments
Issue Links
- testing discovered
-
NEXUS-18066 Consolidated Docker Cleanup
-
- New
-
-
NEXUS-18067 Allow cleanup by regular expression
-
- Closed
-
-
NEXUS-11435 Ability to clean up old docker images/layers from hosted repository
-
- Done
-