Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Clean up Docker images

    Scheduled Pinned Locked Moved Support
    proget
    10 Posts 4 Posters 73 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Does Proget have an automated process to clean up old docker versions/tags? We have an automated process to build our application and our feed is starting to get messy with all the versions.

      I'd like to delete all but the last 10 image tags.

      thanks
      Garry

      Product: ProGet
      Version: 5.2.1

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Hi Garry,
        have you looked into adding retention rules to the feed?

        1 Reply Last reply Reply Quote 0
        • S Offline
          scusson_9923
          last edited by

          Hi,

          Since deleting docker tags is not supported via the docker registry API HTTP DELETE (yet), I was hoping we could script the process ProGet UI runs to remove tags. https://<proget_server>/feeds/<container_folder>/library%2F<image>->"Delete Package"-><tag>

          Is this possible? I do not want to rely on retention rules for our docker images.

          Thanks,
          Scott

          1 Reply Last reply Reply Quote 0
          • S Offline
            scusson_9923
            last edited by

            Hi,

            Can anyone from Inedo chime in?
            

            Thanks,
            Scott

            1 Reply Last reply Reply Quote 0
            • atrippA Offline
              atripp inedo-engineer
              last edited by

              Hello; sorry on the slow reply, we are still not get notifications on replies to old posts... we may block replying to them, but in the meantime...

              I think ProGet does support the deletion endpoint now (PG-1632), but just for manifests. Is there an official DELETE tag API?

              1 Reply Last reply Reply Quote 0
              • S Offline
                scusson_9923
                last edited by

                Hi and thank you for the reply! From what I have read, no Delete tag API exists. At least not yet. It appears that it may be in a future docker release.

                https://github.com/docker/distribution/pull/2169

                What I am looking for is what is outlined on this page:

                https://serverfault.com/questions/872332/easy-way-to-remove-a-tag-from-a-private-docker-registry/872336

                ideally: DELETE http://<docker_repo>/v2/<image>/<tag>

                But in the meantime, it would be great if we could script how ProGet accomplished this in the UI. Although, ProGet's terminology is delete package\image to delete. Maybe it can be delete image\tag to delete? Also, assuming if you delete the last tag, the entire image is deleted as well.

                Please correct me if I am wrong :)

                Scott

                1 Reply Last reply Reply Quote 0
                • atrippA Offline
                  atripp inedo-engineer
                  last edited by

                  We've got some major container improvements coming in ProGet 5.3, and will revamp our product; hopefully we'll be able to present this pretty soon!

                  I think, once you see what we have planned, you'll want to change/improve your workflows to simplify things, and this may not even be necessary... anyways, stay tuned.

                  1 Reply Last reply Reply Quote 1
                  • S Offline
                    scusson_9923
                    last edited by

                    Thanks for the update. I am looking forward to 5.3! :)

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      scusson_9923
                      last edited by

                      By the way, do you have preliminary release notes for 5.3 that we can look at?

                      Thanks,
                      Scott

                      1 Reply Last reply Reply Quote 0
                      • atrippA Offline
                        atripp inedo-engineer
                        last edited by

                        Not yet; I saw an internal presentation on it, but I don't know the communication plan.

                        Feel free to check with @apxltd directly... email or slack seem to be best ;)

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          Last post
                        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation