mirror of https://github.com/docker/docs.git
Windows: integration-cli don't delete nat
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
fc9912fd00
commit
d6ab2ad36d
|
@ -283,6 +283,10 @@ func deleteAllNetworks() error {
|
|||
if n.Name == "bridge" || n.Name == "none" || n.Name == "host" {
|
||||
continue
|
||||
}
|
||||
if daemonPlatform == "windows" && strings.ToLower(n.Name) == "nat" {
|
||||
// nat is a pre-defined network on Windows and cannot be removed
|
||||
continue
|
||||
}
|
||||
status, b, err := sockRequest("DELETE", "/networks/"+n.Name, nil)
|
||||
if err != nil {
|
||||
errors = append(errors, err.Error())
|
||||
|
|
Loading…
Reference in New Issue