Skip to content

Commit c47141b

Browse files
authored
Merge pull request #4684 from dvdksn/fix-build-prune-cache-warn
prune: fix build cache prune warning
2 parents 0acee94 + 8bbc97c commit c47141b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cli/command/system/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func confirmationMessage(dockerCli command.Cli, options pruneOptions) string {
125125
if options.all {
126126
warnings = append(warnings, "all build cache")
127127
} else {
128-
warnings = append(warnings, "all dangling build cache")
128+
warnings = append(warnings, "unused build cache")
129129
}
130130
}
131131

cli/command/system/prune_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestPrunePromptFilters(t *testing.T) {
3636
- all stopped containers
3737
- all networks not used by at least one container
3838
- all dangling images
39-
- all dangling build cache
39+
- unused build cache
4040
4141
Items to be pruned will be filtered with:
4242
- label!=foo=bar

docs/reference/commandline/system_prune.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ WARNING! This will remove:
2929
- all stopped containers
3030
- all networks not used by at least one container
3131
- all dangling images
32-
- all build cache
32+
- unused build cache
3333
Are you sure you want to continue? [y/N] y
3434

3535
Deleted Containers:

0 commit comments

Comments
 (0)