Skip to main content

Dry-run view of what docker prune commands would delete

Project description

docker-prune-plan

PyPI version License: MIT

See exactly what Docker’s prune commands are about to wipe before you hit the big red button and regret it.

Dry-run view 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.1.3/docker_prune_plan-0.1.3-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.

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

docker_prune_plan-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docker_prune_plan-0.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file docker_prune_plan-0.2.0.tar.gz.

File metadata

  • Download URL: docker_prune_plan-0.2.0.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

Hashes for docker_prune_plan-0.2.0.tar.gz
Algorithm Hash digest
SHA256 458ea77b8794fcaa016c119c3814e5ec293f85e1ab532d459e93df7578fbe5c4
MD5 5f5878028506f5d1330c7a8dcc011276
BLAKE2b-256 13149c2c0c78ce12de04c397361a17621681e7002a83eed4f697ef9f7a191cd4

See more details on using hashes here.

File details

Details for the file docker_prune_plan-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for docker_prune_plan-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be33b97586ca7d37aa13b9f227317ecc2dd3ec84f79527dc5dca99063982411b
MD5 22a281347f85edcc880d3e6c39d4d21a
BLAKE2b-256 f7ad93186b348a451f80ad4ce931219c0b4bc04e731949782278d351c2977afb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page