#docker #cleanup #cli

app dockerase

Docker cleaning utility CLI

2 unstable releases

new 0.2.1 Dec 29, 2025
0.1.0 Dec 29, 2025

#2552 in Command line utilities

MIT license

63KB
1.5K SLoC

dockerase

CI Release License: MIT GitHub release

 ___     ___      __  __  _    ___  ____    ____  _____   ___
|   \   /   \    /  ]|  l/ ]  /  _]|    \  /    T/ ___/  /  _]
|    \ Y     Y  /  / |  ' /  /  [_ |  D  )Y  o  (   \_  /  [_
|  D  Y|  O  | /  /  |    \ Y    _]|    / |     |\__  TY    _]
|     ||     |/   \_ |     Y|   [_ |    \ |  _  |/  \ ||   [_
|     |l     !\     ||  .  ||     T|  .  Y|  |  |\    ||     T
l_____j \___/  \____jl__j\_jl_____jl__j\_jl__j__j \___jl_____j

A Docker cleaning utility CLI that helps you reclaim disk space by removing unused Docker resources and macOS system caches.

Installation

Homebrew (macOS/Linux)

brew tap alessandrostone/tap
brew install dockerase

Cargo (Rust)

cargo install dockerase

From Source

git clone https://github.com/alessandrostone/dockerase.git
cd dockerase
cargo install --path .

Usage

Docker Cleanup

# Show disk usage overview
dockerase

# Safely remove unused resources (dangling images, stopped containers, unused volumes)
dockerase purge

# Interactively select what to remove
dockerase select

# Remove ALL Docker resources (nuclear option)
dockerase --nuclear

System Cache Cleanup (macOS)

# List purgeable system caches with sizes
dockerase system

# Purge all system caches
dockerase system purge

# Interactively select which caches to purge
dockerase system select

Supported caches:

  • Homebrew, npm, Yarn, pnpm
  • Cargo (registry & git)
  • Xcode (DerivedData & Archives)
  • pip, CocoaPods, Gradle, Maven
  • Go modules, Composer
  • Trash

Flags

Flag Description
--force, -f Skip confirmation prompts
--dry-run Preview what would be removed without making changes
--nuclear Remove ALL Docker resources (containers, images, volumes, networks, build cache)

Examples

# Preview what purge would remove
dockerase purge --dry-run

# Force purge without confirmation
dockerase purge --force

# Interactively select and preview
dockerase select --dry-run

# Nuclear mode with confirmation skip
dockerase --nuclear --force

# Preview system cache cleanup
dockerase system purge --dry-run

# Interactively select system caches to purge
dockerase system select

Output Examples

Docker Space Usage

Docker Space Usage
══════════════════════════════════════════════════
┌───────────────────────────────────────┐
│ TYPE          TOTAL   RECLAIMABLE     │
╞═══════════════════════════════════════╡
│ Images        12.5 GB 3.2 GB (8)      │
│ Containers    245 MB  245 MB (5)      │
│ Volumes       1.8 GB  890 MB (3)      │
│ Build Cache   2.1 GB  2.1 GB          │
└───────────────────────────────────────┘

Total Reclaimable: 6.4 GB

System Caches

System Caches
══════════════════════════════════════════════════
│ CACHESIZEPATH                              │
│ Xcode DerivedData│ 8.2 GB~/Library/Developer/Xcode/...     │
│ Homebrew         │ 2.1 GB~/Library/Caches/Homebrew         │
│ npm              │ 1.4 GB~/.npm/_cacache                   │
│ Cargo Registry   │ 890 MB~/.cargo/registry                 │
│ Trash            │ 342 MB~/.Trash                          │

Total Purgeable: 12.9 GB

License

MIT

Dependencies

~4–16MB
~138K SLoC