add -f flag to prune commands for docker compat#1417
add -f flag to prune commands for docker compat#1417knQzx wants to merge 1 commit intoapple:mainfrom
Conversation
|
I don't think this is something we want here. Adding an option for a flag, to only just output it as a no-op is counter intuitive. However, I see the flag actually being useful, if it is properly implemented. This could be broken up into two separate issues:
What do you think? |
i went with option 2 because that's what @ptone asked for in #938 - no-op with a warning. the issue scope is just docker compat so i kept it narrow no-op feels like a safer first step - it doesn't change behavior for anyone already using prune. prompt + -force is a separate, bigger change, but i can rework it if that's the preferred direction @jglogan what do you think? |
summary
prune -ftest plan
container prune -fsucceeds, prints warning on stderr, normal output on stdoutfixes #938