-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem:
Users sometimes require a "factory reset" for their Docker environment, clearing absolutely everything (containers, images, networks, cache) without the granular scanning and selection process.
Proposed Solution:
Add a --full-wipe flag (or command) that wraps the native docker system prune -a command.
Requirements:
-
Command/Flag:
docklean --full-wipe- This mode bypasses the standard
scan->selectflow.
-
Behavior:
- Executes
docker system prune -a(removes all stopped containers, all networks not used by at least one container, all images without at least one container associated to them, all build cache). - Volume Support: Ideally, should support including volumes (e.g., if combined with
--volumesor via a specific prompt).
- Executes
-
Safety:
- Mandatory Prompt: Must display a high-visibility warning (e.g., "
⚠️ THIS WILL DELETE ALL STOPPED RESOURCES, INCLUDING UNUSED IMAGES AND CACHE."). - Confirmation: Require an explicit "yes" from the user.
- Force Flag: Support
--forceto bypass the confirmation prompt (e.g.,docklean --full-wipe --force).
- Mandatory Prompt: Must display a high-visibility warning (e.g., "
-
Implementation Details:
- Add the flag to
src/args.ts. - In
src/index.ts, check for this flag early and branch to a dedicated handler that invokes the docker command directly.
- Add the flag to
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request