Dry-run view of what docker prune commands would delete
Project description
docker-prune-plan
See what Docker’s prune commands are about to wipe before you hit the big red button and regret it.
Best-effort preview of what Docker prune commands would delete (system, image, container, volume, network). Implemented as a Python CLI.
Install
Option 1: PyPI (Recommended)
The easiest way to install the latest stable version:
pip install docker-prune-plan
Option 2: Github releases
Install the latest release directly:
pip install https://github.com/wahabmangat/docker-prune-plan/releases/download/v0.2.1/docker_prune_plan-0.2.1-py3-none-any.whl
After installation the command docker-prune-plan will be available on your PATH.
Usage
# Preview docker system prune
docker-prune-plan system
# Preview docker system prune -a (unused images, not just dangling)
docker-prune-plan system --all/-a
# Preview docker system prune --volumes (unused anonymous volumes)
docker-prune-plan system --volumes
# Preview docker image prune (dangling images)
docker-prune-plan image
# Preview docker image prune -a (all unused images)
docker-prune-plan image --all/-a
# Preview docker volume prune (unused anonymous volumes)
docker-prune-plan volume
# Preview docker volume prune -a (all unused volumes)
docker-prune-plan volume --all/-a
# Preview docker container prune (stopped containers)
docker-prune-plan container
# Preview docker network prune (unused custom networks)
docker-prune-plan network
# JSON output
docker-prune-plan system --json
Notes
- --all is supported for system and image (affects images only), and for volume (includes named volumes).
- Label/Filter support is not implemented yet.
- The tool prints a Plan Reclaimable Space total based on the listed items. Differences from other Docker disk usage reports can occur due to shared image layers and build cache internals.
- The output is a best-effort preview based on the current Docker state (useful as a safety checklist before pruning). Actual prune results may differ due to Docker’s prune order and state changes.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docker_prune_plan-0.2.1.tar.gz.
File metadata
- Download URL: docker_prune_plan-0.2.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af8ac7aaf1f338f5dd3c84439cdd61d33096ea549ae1df6e2796f6861eb41206
|
|
| MD5 |
844d039469fef99d9e3ca1b8d2ff4fd0
|
|
| BLAKE2b-256 |
884d63eb7fdd2c9329e8f595c6687cfd74edf083684902d21dcb952b195b5230
|
File details
Details for the file docker_prune_plan-0.2.1-py3-none-any.whl.
File metadata
- Download URL: docker_prune_plan-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6072a69901dadf9e2ebda46c5c286761d22e043b51215f9fed8adb7fa5a07bc1
|
|
| MD5 |
f6c10e363e14347340fe80174c4118c3
|
|
| BLAKE2b-256 |
945a11359ccc404f9f0e62cc0962b2b1b1e6cc8a7c8908f6b9db24134dc18631
|