May 15, 20215 yr Hi all, I discovered that I have a ton of Orphaned images in Docker. I can only delete one at a time. Is there an App that can remove these? If not, whats the best way to do it?
May 15, 20215 yr Author 36 minutes ago, deadnote said: You can use this plugin : CA Cleanup Appdata That doesn't delete Orphaned images.
May 15, 20215 yr Author I got it! If you download the User Scrips plug in. They already have the script to enable to remove orphaned images. You can also set a schedule. Pretty cool!
May 11, 20242 yr On 3/6/2024 at 7:17 AM, abhi.ko said: Can you share the script that i need to add to user scripts for this please? The script is already in User Scripts. It's called delete_dangling_images
November 1, 20241 yr On 5/10/2024 at 8:46 PM, Collectathon said: The script is already in User Scripts. It's called delete_dangling_images Hmmm, not OP but that doesn't do anything with orphaned images. I have a bunch of orphaned images and the script fails because the command for the dangling images doesn't return anything for docker rmi: docker rmi $(docker images --quiet --filter "dangling=true") Edited November 1, 20241 yr by NichollsGlen edited for clarity
November 1, 20241 yr nvm, sounds like the issue I am seeing is because I have explicit version tags I update manually. This link and other comments provides a solution to handle that as well EDIT: Adding docker image prune -a -f after the docker rmi command in the delete_dangling_images properly deletes the orphaned images as well. Edited November 1, 20241 yr by NichollsGlen edited for clarity and provided command referenced in link
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.