Cleanup Commands

Difficulty: Beginner

Question

How do you clean up unused Docker images, containers, and volumes?

Answer

Use `docker system prune`. To remove everything including unused images and volumes, use `docker system prune -a --volumes`.

Concepts covered

Prune, Storage, Cleanup