Merge pull request #4684 from dvdksn/fix-build-prune-cache-warn

prune: fix build cache prune warning
This commit is contained in:
Sebastiaan van Stijn 2023-12-06 00:18:19 +01:00 committed by GitHub
commit c47141bde0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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")
}
}

View File

@ -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

View File

@ -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: