Make container CLI auto-clean by default #24
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: glenux/docmachine-cli#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
--keep-container(or similar) flag for debugging workflows.Current behavior
docmachine containeronly removes containers when--auto-removeis set. Most commands run with the default (false), so even short-lived tasks leave behind stopped containers that accumulate across runs. The audit notes this surprises users who expect the CLI to clean up after itself.Desired outcome
Technical notes
--keep-container) incontainer/cli.crand propagate it throughContainer::Config.Container::Run#run_commandto honour the flag when deciding whether to callcleanup_container.--auto-removeremain clear and documented.Local task: 11aa03