Skip to content

Glossary: Docker Basics

docker container prune

Also written: docker image prune, docker volume prune, docker system prune

The `prune` commands delete unused items: stopped containers, dangling images, unused volumes, or several kinds at once. `-f` skips the confirmation; `-a` removes more, and with volumes deletes named ones.

Where the book teaches it

Related terms

docker system dfDangling image