mirror of https://github.com/docker/cli.git
prune: fix build cache prune warning
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
654ff3ae00
commit
8bbc97c867
|
@ -125,7 +125,7 @@ func confirmationMessage(dockerCli command.Cli, options pruneOptions) string {
|
||||||
if options.all {
|
if options.all {
|
||||||
warnings = append(warnings, "all build cache")
|
warnings = append(warnings, "all build cache")
|
||||||
} else {
|
} else {
|
||||||
warnings = append(warnings, "all dangling build cache")
|
warnings = append(warnings, "unused build cache")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ func TestPrunePromptFilters(t *testing.T) {
|
||||||
- all stopped containers
|
- all stopped containers
|
||||||
- all networks not used by at least one container
|
- all networks not used by at least one container
|
||||||
- all dangling images
|
- all dangling images
|
||||||
- all dangling build cache
|
- unused build cache
|
||||||
|
|
||||||
Items to be pruned will be filtered with:
|
Items to be pruned will be filtered with:
|
||||||
- label!=foo=bar
|
- label!=foo=bar
|
||||||
|
|
|
@ -29,7 +29,7 @@ WARNING! This will remove:
|
||||||
- all stopped containers
|
- all stopped containers
|
||||||
- all networks not used by at least one container
|
- all networks not used by at least one container
|
||||||
- all dangling images
|
- all dangling images
|
||||||
- all build cache
|
- unused build cache
|
||||||
Are you sure you want to continue? [y/N] y
|
Are you sure you want to continue? [y/N] y
|
||||||
|
|
||||||
Deleted Containers:
|
Deleted Containers:
|
||||||
|
|
Loading…
Reference in New Issue