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
-
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
GarryProduct: ProGet
Version: 5.2.1
-
Hi Garry,
have you looked into adding retention rules to the feed?
-
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
-
Hi,
Can anyone from Inedo chime in?
Thanks,
Scott
-
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?
-
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:
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
-
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.
-
Thanks for the update. I am looking forward to 5.3! :)
-
By the way, do you have preliminary release notes for 5.3 that we can look at?
Thanks,
Scott
-
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 ;)