Merge pull request #2445 from thaJeztah/19.03_backport_network_prune_improve_message

[19.03 backport] improve "network prune" output to mention custom networks only
This commit is contained in:
Silvin Lubecki 2020-04-21 17:23:18 +02:00 committed by GitHub
commit d25e657341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ func NewPruneCommand(dockerCli command.Cli) *cobra.Command {
return cmd return cmd
} }
const warning = `WARNING! This will remove all networks not used by at least one container. const warning = `WARNING! This will remove all custom networks not used by at least one container.
Are you sure you want to continue?` Are you sure you want to continue?`
func runPrune(dockerCli command.Cli, options pruneOptions) (output string, err error) { func runPrune(dockerCli command.Cli, options pruneOptions) (output string, err error) {

View File

@ -27,7 +27,7 @@ by any containers.
```bash ```bash
$ docker network prune $ docker network prune
WARNING! This will remove all networks not used by at least one container. WARNING! This will remove all custom networks not used by at least one container.
Are you sure you want to continue? [y/N] y Are you sure you want to continue? [y/N] y
Deleted Networks: Deleted Networks:
n1 n1