Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit e238f67

Browse files
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 Upstream-commit: d25e657341e2425e746c29aa7b1950032396fb12 Component: cli
2 parents f46d59e + d88786f commit e238f67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

components/cli/cli/command/network/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewPruneCommand(dockerCli command.Cli) *cobra.Command {
4343
return cmd
4444
}
4545

46-
const warning = `WARNING! This will remove all networks not used by at least one container.
46+
const warning = `WARNING! This will remove all custom networks not used by at least one container.
4747
Are you sure you want to continue?`
4848

4949
func runPrune(dockerCli command.Cli, options pruneOptions) (output string, err error) {

components/cli/docs/reference/commandline/network_prune.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ by any containers.
2727
```bash
2828
$ docker network prune
2929

30-
WARNING! This will remove all networks not used by at least one container.
30+
WARNING! This will remove all custom networks not used by at least one container.
3131
Are you sure you want to continue? [y/N] y
3232
Deleted Networks:
3333
n1

0 commit comments

Comments
 (0)