From 8bbc97c867282e5e9cc3a148b6e6a531def7bb8c Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 28 Nov 2023 11:53:13 +0100 Subject: [PATCH] prune: fix build cache prune warning Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- cli/command/system/prune.go | 2 +- cli/command/system/prune_test.go | 2 +- docs/reference/commandline/system_prune.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/command/system/prune.go b/cli/command/system/prune.go index 9a4e88fd77..fdc3ffc3f0 100644 --- a/cli/command/system/prune.go +++ b/cli/command/system/prune.go @@ -125,7 +125,7 @@ func confirmationMessage(dockerCli command.Cli, options pruneOptions) string { if options.all { warnings = append(warnings, "all build cache") } else { - warnings = append(warnings, "all dangling build cache") + warnings = append(warnings, "unused build cache") } } diff --git a/cli/command/system/prune_test.go b/cli/command/system/prune_test.go index 65ceacbee5..ff0f7ae699 100644 --- a/cli/command/system/prune_test.go +++ b/cli/command/system/prune_test.go @@ -36,7 +36,7 @@ func TestPrunePromptFilters(t *testing.T) { - all stopped containers - all networks not used by at least one container - all dangling images - - all dangling build cache + - unused build cache Items to be pruned will be filtered with: - label!=foo=bar diff --git a/docs/reference/commandline/system_prune.md b/docs/reference/commandline/system_prune.md index 728cb87fce..4c3ff284ac 100644 --- a/docs/reference/commandline/system_prune.md +++ b/docs/reference/commandline/system_prune.md @@ -29,7 +29,7 @@ WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling images - - all build cache + - unused build cache Are you sure you want to continue? [y/N] y Deleted Containers: