docker image rm $(docker image ls -q -f dangling=true)
Remove all dangling images
Dangling images are untagged leftovers from builds, often wasting gigabytes. The command substitution feeds every matching image ID to rm. Destructive, but tagged images survive untouched. Prefer docker image prune for a prompt-free sweep.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.