docker system prune Explained

What docker system prune does, with an example.

Published November 9, 2026

docker system prune removes unused containers, networks, images, and build cache to free up disk space.

Key points

  • Part of the standard Docker CLI used for building, running, and managing containers

Example

docker system prune -a
More General articles