mayberts Posted November 8, 2023 Share Posted November 8, 2023 Hey all, I have been struggling to find a solution to this issue. it happens all the time and I have to manually remove then, which is a pain and time consuming. I have user scripts installed, but running the dangling images script does nothing below is the output from the script. Does anyone know what's wrong or am doing something wrong? Script location: /tmp/user.scripts/tmpScripts/delete_dangling_images/script Note that closing this window will abort the execution of this script "docker rmi" requires at least 1 argument. See 'docker rmi --help'. Usage: docker rmi [OPTIONS] IMAGE [IMAGE...] Remove one or more images Finished if an error shows above, no dangling images were found to delete I have attached a screen of the dangling images and diagnostics. Thanks defiant-diagnostics-20231108-0708.zip Quote Link to comment
Solution Kilrah Posted November 8, 2023 Solution Share Posted November 8, 2023 (edited) That script seems wrong, what you want is docker image prune -a Edited November 8, 2023 by Kilrah Quote Link to comment
mayberts Posted November 8, 2023 Author Share Posted November 8, 2023 12 minutes ago, Kilrah said: ocker image prune -a Thank you, it's working and it a time saver for sure Quote Link to comment
Recommended Posts
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.