Skip to content
masterclass Buddy

Docker · Command

docker system prune

Remove unused Docker containers, networks, images, and build cache. Use --all for unused tagged images and --volumes for unused anonymous volumes.

Last updated

Syntax

docker system prune [OPTIONS]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • docker builder prune
  • docker image prune
  • docker volume prune --all

Source: docker system prune. Checked 2026-11-03.