Cheatsheet Pages / Docker Cheatsheet

How to clean up everything unused in Docker — docker system prune

Disk is full and you want stopped containers, unused networks and unused images gone in one sweep.

docker system prune                # stopped containers, unused networks/images (asks first)
docker system prune -a --volumes   # ⚠️ EVERYTHING unused — read twice, run once

Good to know

The -a --volumes form removes EVERYTHING unused — read it twice, run it once.

Docker Cheatsheet one-page card — commands that actually work
The full one-page card — Docker Cheatsheet. Get the complete cheatsheet on GitHub