Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-22639

Docs need example for cleaning up Docker images

    XMLWordPrintable

    Details

      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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rodrigc@crodrigues.org Craig Rodrigues
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title