docker rmi $(docker images -q -f dangling=true)

Category: Docker

docker rmi $(docker images -q -f dangling=true)

Remove all dangling (untagged) images

Removes all dangling images — images that aren't tagged and aren't used by any container. Good for freeing space.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.