mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #11738 from rhatdan/docs
Fix english on prune prompt
This commit is contained in:
@ -80,7 +80,7 @@ func prune(cmd *cobra.Command, args []string) error {
|
||||
func createPruneWarningMessage(pruneOpts entities.ImagePruneOptions) string {
|
||||
question := "Are you sure you want to continue? [y/N] "
|
||||
if pruneOpts.All {
|
||||
return "WARNING! This will remove all images without at least one container associated to them.\n" + question
|
||||
return "WARNING! This command removes all images without at least one container associated with them.\n" + question
|
||||
}
|
||||
return "WARNING! This will remove all dangling images.\n" + question
|
||||
return "WARNING! This command removes all dangling images.\n" + question
|
||||
}
|
||||
|
@ -113,15 +113,15 @@ func prune(cmd *cobra.Command, args []string) error {
|
||||
|
||||
func createPruneWarningMessage(pruneOpts entities.SystemPruneOptions) string {
|
||||
if pruneOpts.All {
|
||||
return `WARNING! This will remove:
|
||||
return `WARNING! This command removes:
|
||||
- all stopped containers
|
||||
- all networks not used by at least one container%s
|
||||
- all images without at least one container associated to them
|
||||
- all images without at least one container associated with them
|
||||
- all build cache
|
||||
|
||||
%s`
|
||||
}
|
||||
return `WARNING! This will remove:
|
||||
return `WARNING! This command removes:
|
||||
- all stopped containers
|
||||
- all networks not used by at least one container%s
|
||||
- all dangling images
|
||||
|
Reference in New Issue
Block a user