Merge pull request #11738 from rhatdan/docs

Fix english on prune prompt
This commit is contained in:
OpenShift Merge Robot
2021-09-24 12:14:54 -04:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ func prune(cmd *cobra.Command, args []string) error {
func createPruneWarningMessage(pruneOpts entities.ImagePruneOptions) string { func createPruneWarningMessage(pruneOpts entities.ImagePruneOptions) string {
question := "Are you sure you want to continue? [y/N] " question := "Are you sure you want to continue? [y/N] "
if pruneOpts.All { 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
} }

View File

@ -113,15 +113,15 @@ func prune(cmd *cobra.Command, args []string) error {
func createPruneWarningMessage(pruneOpts entities.SystemPruneOptions) string { func createPruneWarningMessage(pruneOpts entities.SystemPruneOptions) string {
if pruneOpts.All { if pruneOpts.All {
return `WARNING! This will remove: return `WARNING! This command removes:
- all stopped containers - all stopped containers
- all networks not used by at least one container%s - 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 - all build cache
%s` %s`
} }
return `WARNING! This will remove: return `WARNING! This command removes:
- all stopped containers - all stopped containers
- all networks not used by at least one container%s - all networks not used by at least one container%s
- all dangling images - all dangling images