1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

fix double [y/N] in container prune

Signed-off-by: Victor Vieux <vieux@docker.com>
Upstream-commit: 3014d36cd9
Component: cli
This commit is contained in:
Victor Vieux
2016-11-03 10:33:17 -07:00
parent 7e77a4eb36
commit a3d3423005

View File

@@ -44,7 +44,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
}
const warning = `WARNING! This will remove all stopped containers.
Are you sure you want to continue? [y/N] `
Are you sure you want to continue?`
func runPrune(dockerCli *command.DockerCli, opts pruneOptions) (spaceReclaimed uint64, output string, err error) {
if !opts.force && !command.PromptForConfirmation(dockerCli.In(), dockerCli.Out(), warning) {