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!

    How to delete untagged Docker images digest (free tier)

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 19 Views
    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.
    • L Offline
      lisama7982_5385
      last edited by

      Hi everyone,

      I'm new to ProGet and really enjoying it so far as a hobbyist user. However, I'm currently stuck with a cleanup issue. I have several untagged Docker image digests that accumulated because I've been pushing updates to the same tag repeatedly.

      Right now, I can't figure out how to clean up these untagged digests. Here's what I've tried so far:

      Restarting the container.

      • Manually scheduling clean-up jobs.
      • Using the REST/HTTP API—but I couldn’t find a way to filter or select untagged images by digest.
      • Waiting for the Feed Cleanup and Retention jobs to run, but these features appear to be Enterprise-only.
      • Waiting for the Docker Garbage Collection, but it seems to skip these untagged digests.
      • Attempting to delete them via the UI, but this only allows deletions based on tags, not digests.

      I'm struggling to figure out what options I have for cleaning up these untagged digests on the free tier. This is a home system as I am a hobbyist so the enterprise plan isn't feasible. If anyone could guide me or suggest an approach, I’d really appreciate it.

      Here’s a screenshot for reference:

      04bf538a-c360-4672-9790-e154d6102afd-image.png

      Thanks in advance for your help!

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

        Hi @lisama7982_5385,

        This is something that Retention Rules are typically used for, but as a home/hobby user I understand how that doesn't make sense.

        You cannot navigate to these images in the ProGEt UI, which means you can't delete them from the UI. So I would just tag them, then you can browse and delete them.

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 0
        • L Offline
          lisama7982_5385
          last edited by

          @atripp Thanks for the quick reply, I'm stuck about how to retag already existing digests?

          Currently, the repository is entirely untagged, so I can’t pull from the image's digest and retag it. I believe the issue is that I’m not being provided with the full digest hash - as seen in my screenshot - which is preventing me from referencing or working with the images directly.

          Would there be a way to retrieve the complete digest hash or otherwise interact with these untagged images so I can retag them? Or is there another approach you’d recommend for cleaning them up?

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

            @lisama7982_5385 this would require using the Docker API, which is kind off a pain, but if you search for things like "how to tag an image with a digest usng Docker API" or something you should find it eventually

            You can also use the Docker CLI by doing something like docker pull using the digest, then docker tag, then docker push.

            If this is a one-time clean-up you may also wish to query the database tables, like Docker* tables will allow you to eventually find what images you need to tag. Just don't delete from the database, since that can cause a headache and it won't delete files from disk

            Hope that helps :)

            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