Skip to content

Commit

Permalink
Merge pull request #2445 from thaJeztah/19.03_backport_network_prune_…
Browse files Browse the repository at this point in the history
…improve_message

[19.03 backport] improve "network prune" output to mention custom networks only
  • Loading branch information
silvin-lubecki authored Apr 21, 2020
2 parents 8986e31 + c38b260 commit d25e657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/command/network/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func NewPruneCommand(dockerCli command.Cli) *cobra.Command {
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?`

func runPrune(dockerCli command.Cli, options pruneOptions) (output string, err error) {
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/network_prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ by any containers.
```bash
$ 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
Deleted Networks:
n1
Expand Down

0 comments on commit d25e657

Please sign in to comment.