Merge pull request #2432 from thaJeztah/network_prune_improve_message

improve "network prune" output to mention custom networks only
This commit is contained in:
Silvin Lubecki 2020-04-21 17:06:42 +02:00 коммит произвёл GitHub
Родитель 7a006fbee4 eb93a865ed
Коммит 9fee14a814
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) {

Просмотреть файл

@ -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