mirror of https://github.com/docker/cli.git
improve "network prune" output to mention custom networks only
The `docker network prune` command removes unused custom networks,
but built-in networks won't be removed. This patch updates the
message to mention that it's only removing custom networks.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit eb93a865ed
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
173c85ad75
commit
c38b260077
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue