Skip to main content

Remove all Docker unused containers, networks, images (both dangling and unreferenced), and optionally, volumes.

# To forcefully remove (no confirmation prompt) all unused containers, networks, images (both dangling and unreferenced), and volumes
docker system prune --all --volumes --force